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

we can not forward/backward recorded video . #24

Open
dinesh-pathak100 opened this issue Sep 27, 2017 · 3 comments
Open

we can not forward/backward recorded video . #24

dinesh-pathak100 opened this issue Sep 27, 2017 · 3 comments

Comments

@dinesh-pathak100
Copy link

dinesh-pathak100 commented Sep 27, 2017

The recorded video can not be forward/backward or want to start from any point, it is not working properly. What should I do for that @muaz-khan

@muaz-khan
Copy link
Owner

You can try this:

var blobs = [];
var recorder = RecordRTC(screenOrCamera, {
     type: 'video',
     timeSlice: 1000,
     ondataavailable: function(blob) {
           blobs.push(blob);
     }
});

And stop recording:

recorder.stopRecording(function() {
    var singleBlob = new File(blobs, 'video.webm', {
         type: 'video/webm'
    });
    videoPreview.src = URL.createObjectURL(singleBlob);
});

@dinesh-pathak100
Copy link
Author

Sir actually I am using your extension code, I am using MediaStreamRecorder , will I need to replace MediaStreamRecorder to RecordRTC or not?

@dinesh-pathak100
Copy link
Author

Sir @muaz-khan The problem is same after implementing this code.

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

2 participants