fix: Set initial timestamp on first frame (#1114)
This commit is contained in:
parent
147b9111d4
commit
54703f386c
@ -155,6 +155,7 @@ class RecordingSession {
|
||||
}
|
||||
// Start the writing session before we write the first video frame
|
||||
if !hasStartedWritingSession {
|
||||
initialTimestamp = timestamp
|
||||
assetWriter.startSession(atSourceTime: timestamp)
|
||||
ReactLogger.log(level: .info, message: "Started RecordingSession at \(timestamp.seconds) seconds.")
|
||||
hasStartedWritingSession = true
|
||||
|
Loading…
Reference in New Issue
Block a user