Skip to content

feat: Add RecordingFinishedReason#3786

Merged
mrousavy merged 5 commits into
mainfrom
feat/recording-stopped-reason
Apr 24, 2026
Merged

feat: Add RecordingFinishedReason#3786
mrousavy merged 5 commits into
mainfrom
feat/recording-stopped-reason

Conversation

@mrousavy
Copy link
Copy Markdown
Owner

Adds a parameter to onRecordingFinished that tells the user what the reason for finishing the recording was - either stopped (stopRecording()), max-duration-reached (maxDuration) or max-file-size-reached (maxFileSize).

In the native iOS and Android implementations max duration and max file size are fired via recording error callbacks, I wonder why they do that and if my approach really is better.

@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 24, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
react-native-vision-camera-docs Ready Ready Preview, Comment Apr 24, 2026 9:50am

Request Review

@mrousavy mrousavy merged commit 16448a5 into main Apr 24, 2026
4 of 5 checks passed
@mrousavy mrousavy deleted the feat/recording-stopped-reason branch April 24, 2026 09:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant