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

JS error after capturing some frames. #9

Open
manpreetsingh2011 opened this issue Nov 18, 2013 · 2 comments
Open

JS error after capturing some frames. #9

manpreetsingh2011 opened this issue Nov 18, 2013 · 2 comments

Comments

@manpreetsingh2011
Copy link

Kudos to the team for making this fabulous library.

I am getting following JavaScript error when I try to record videos.

Uncaught TypeError: Cannot read property 'width' of undefined MediaStreamRecorder.js:668
checkFrames MediaStreamRecorder.js:668
toWebM MediaStreamRecorder.js:524
WhammyVideo.compile MediaStreamRecorder.js:914
(anonymous function) MediaStreamRecorder.js:357

I am able to capture lot of frames, but problem occurs after some time, which is quite random. After this JS error occurs, the capturing of frames stops permanently.

@muaz-khan
Copy link
Member

Hi, I stopped updating this repo a while ago; I suggest you try RecordRTC instead. Demo

Otherwise, you can try this MediaStreamRecorder.

Remember, for video recording, I'm using Canvas2D API to record webp images; and encoding them in webm format. AFAIK, webp is not supoorted on Firefox; so video or gif recording may fail there.

@manpreetsingh2011
Copy link
Author

Thanks @muaz-khan .. I tried my hand at RecordRTC.. My purpose is to stream audio and video to the server. But RecordRTC requires me to stopRecording before I can get access to the blob data. I can start the recording again, but it does not looks to be the best solution to stop & start the recording again and again.

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