You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 16, 2023. It is now read-only.
I've been using react-native-camera in my mobile app to record video. It has a button that is held to record, released to stop, and held after to start recording again. However, I've had to implement a 1 second minimum recording time to the app, which gets rather annoying. There are 2 reasons for this: I have to merge the videos manually via my own native code, which doesn't seem to properly recognize videos less than about 1 second long, and that there's currently a bug where attempting to stop the recording to soon (about half a second of recording time or so), will fail to actually stop the recording.
I think that adding a pause/resume call would fix both of these issues. First of all it would remove the need to manually merge the videos, eliminating the first problem. In addition, while a just hunch, I don't think the aforementioned bug would occur with the pause/resume function.
As such, I'd like to request for a pause/resume call. It should be possible, as AVCaptureFileOutput has a both pauseRecording and resumeRecording instance method (for iOS, not sure about android). If you do implement this, a promise with the current recording length would also be much appreciated.
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You may also mark this issue as a "discussion" and i will leave this open.
stalebot
added
the
stale
There has been a lack of activity on this issue and it may be closed soon.
label
Jun 12, 2019
I've been using react-native-camera in my mobile app to record video. It has a button that is held to record, released to stop, and held after to start recording again. However, I've had to implement a 1 second minimum recording time to the app, which gets rather annoying. There are 2 reasons for this: I have to merge the videos manually via my own native code, which doesn't seem to properly recognize videos less than about 1 second long, and that there's currently a bug where attempting to stop the recording to soon (about half a second of recording time or so), will fail to actually stop the recording.
I think that adding a pause/resume call would fix both of these issues. First of all it would remove the need to manually merge the videos, eliminating the first problem. In addition, while a just hunch, I don't think the aforementioned bug would occur with the pause/resume function.
As such, I'd like to request for a pause/resume call. It should be possible, as AVCaptureFileOutput has a both pauseRecording and resumeRecording instance method (for iOS, not sure about android). If you do implement this, a promise with the current recording length would also be much appreciated.
The text was updated successfully, but these errors were encountered: