Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

onNewSegment() callback not happening #35

Open
ranjitpandit opened this issue Jun 24, 2016 · 2 comments
Open

onNewSegment() callback not happening #35

ranjitpandit opened this issue Jun 24, 2016 · 2 comments

Comments

@ranjitpandit
Copy link

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?

@dojiboy9
Copy link

dojiboy9 commented Nov 12, 2016

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 #23 .
You are likely getting the same error

@mxmtsk
Copy link

mxmtsk commented May 9, 2017

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

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

No branches or pull requests

3 participants