react-native-screcorder
react-native-screcorder copied to clipboard
onNewSegment() callback not happening
Using React Native v0.27 and the latest version of react-native-screcorder I'm able to take a still picture with capture. However, when taking video, I do record, pause and then I don't get a callback onNewSegment. I tried doing a save after the pause and I get a temp mp4 file but it's of 0 duration and not playable by react-native-video.
Has anyone seen this issue?
Same thing happened to me.
In the config, make sure to set bitrate
and timescale
key.
Such as
config: {
flashMode: Recorder.constants.SCFlashModeOff,
video: {
enabled: true,
format: 'MPEG4',
bitrate: 2000000,
timescale: 1
},
}
See https://github.com/maxs15/react-native-screcorder/issues/23 . You are likely getting the same error
Did you resolve the issue? Struggling with it to right now