fix: Fix Recordings with audio={false} timeouting (#2221)

This commit is contained in:
Marc Rousavy 2023-11-27 14:43:48 +01:00 committed by GitHub
parent cad5240420
commit 7047686ff9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -152,6 +152,11 @@ class RecordingSession {
assetWriter.startSession(atSourceTime: currentTime)
startTimestamp = currentTime
ReactLogger.log(level: .info, message: "Started RecordingSession at time: \(currentTime.seconds)")
if audioWriter == nil {
// Audio was enabled, mark the Audio track as finished so we won't wait for it.
hasWrittenLastAudioFrame = true
}
}
/**