From 54703f386c8d8cf669a341732b37fcd4529bdcb3 Mon Sep 17 00:00:00 2001 From: Thomas Coldwell <31568400+thomas-coldwell@users.noreply.github.com> Date: Mon, 4 Jul 2022 13:09:39 +0100 Subject: [PATCH] fix: Set initial timestamp on first frame (#1114) --- ios/RecordingSession.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/ios/RecordingSession.swift b/ios/RecordingSession.swift index a13b548..87ead05 100644 --- a/ios/RecordingSession.swift +++ b/ios/RecordingSession.swift @@ -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