-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[camera_avfoundation] fix stopVideoRecording waiting indefinitely and…
… video lag at start (#7065) Call to `startWriting` was moved to `startVideoRecordingWithCompletion` to fix situation when completion is not called when `_isRecording` is `YES` but `_videoWriter.status` is `AVAssetWriterStatusUnknown` in `stopVideoRecordingWithCompletion` which can happen if `stopVideoRecordingWithCompletion` is called right after `startVideoRecordingWithCompletion` and `didOutputSampleBuffer` had no chance to call `startWriting` in meantime and to avoid lag which happens when is called `startWriting` between first frame creation and its appending. Fixes flutter/flutter#132016 Fixes flutter/flutter#151319
- Loading branch information
Showing
4 changed files
with
119 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters