react-native-screcorder icon indicating copy to clipboard operation
react-native-screcorder copied to clipboard

onNewSegment() callback not happening

Open ranjitpandit opened this issue 8 years ago • 2 comments

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?

ranjitpandit avatar Jun 24 '16 19:06 ranjitpandit

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

dojiboy9 avatar Nov 12 '16 06:11 dojiboy9

Did you resolve the issue? Struggling with it to right now

mxmtsk avatar May 09 '17 17:05 mxmtsk