Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix: Fix RecordingSession out-of-sync issues #3102

Merged
merged 2 commits into from
Jul 25, 2024
Merged

Conversation

mrousavy
Copy link
Owner

What

  1. Fixes an issue where the RecordingSession could go into an endless loop of trying to finish(), but no video track has ever been created. Now it cancels the recording in this case. This can only happen if you call stopRecording() immediately after startRecording()
  2. Wait at least 100ms before force-stopping a recording (in case the latency got bigger)

Changes

Tested on

Related issues

Copy link

vercel bot commented Jul 24, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
react-native-vision-camera ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 24, 2024 4:12pm

@mrousavy mrousavy merged commit a8d13fa into main Jul 25, 2024
8 checks passed
@mrousavy mrousavy deleted the fix/recording-session-sync branch July 25, 2024 09:59
isaaccolson pushed a commit to isaaccolson/deliveries-mobile that referenced this pull request Oct 30, 2024
* fix: At least wait 100ms before force stopping

* fix: Finish `RecordingSession` if no video track was ever created
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant