fix: Synchronize Audio Frames with Video Frames using masterClock (#161)
				
					
				
			* Synchronize Audio Frames with Video Frames using `masterClock` * Update CameraView+RecordVideo.swift
This commit is contained in:
		| @@ -106,7 +106,7 @@ class RecordingSession { | ||||
|     ReactLogger.log(level: .info, message: "Started RecordingSession at \(initialTimestamp!.seconds) seconds.") | ||||
|   } | ||||
|  | ||||
|   func appendBuffer(_ buffer: CMSampleBuffer, type bufferType: BufferType) { | ||||
|   func appendBuffer(_ buffer: CMSampleBuffer, type bufferType: BufferType, timestamp: CMTime) { | ||||
|     if !CMSampleBufferDataIsReady(buffer) { | ||||
|       return | ||||
|     } | ||||
| @@ -117,7 +117,6 @@ class RecordingSession { | ||||
|       return | ||||
|     } | ||||
|  | ||||
|     let timestamp = CMSampleBufferGetPresentationTimeStamp(buffer) | ||||
|     latestTimestamp = timestamp | ||||
|  | ||||
|     switch bufferType { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user