New issue
Advanced search Search tips

Issue 673184 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Dec 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 3
Type: Bug



Sign in to add a comment

MediaRecorder doesn't create data Blobs while recording

Reported by bl...@pitch.ly, Dec 11 2016

Issue description

Chrome Version       : 54.0.2840.98
OS Version: OS X 10.12.1
URLs (if applicable) :
Other browsers tested:
  Add OK or FAIL after other browsers where you have tested this issue:
     Safari 5: FAIL
  Firefox 4.x: OK
     IE 7/8/9: ?

What steps will reproduce the problem?
1. Load the MediaRecorder demo here: https://webrtc.github.io/samples/src/content/getusermedia/record/
2. Record a video.
3. Try playing it back or downloading. 

What is the expected result?
When the MediaRecorder is started, blobs of data should be created.

What happens instead of that?
Looks like either `ondataavailable` is not called, or the `event.data` argument is empty.

Please provide any additional information below. Attach a screenshot if
possible.
Works in Firefox, doesn't work in Chrome. 
We are using the "Pitchly-Webcam.js" implementation from here: https://www.npmjs.com/package/pitchly-webcamjs

UserAgentString: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.98 Safari/537.36



 

Comment 1 by ajha@chromium.org, Dec 12 2016

Components: Blink>Media
Labels: M-57
Components: Blink>WebRTC>Video
Owner: mcasas@chromium.org

Comment 4 by mcasas@chromium.org, Dec 12 2016

Components: -Blink>Media Blink>MediaStream>Recording

Comment 5 by mcasas@chromium.org, Dec 12 2016

Cc: mcasas@chromium.org
Labels: Needs-Feedback
Owner: ----
blake@ If you're using the pitchly-webcamjs node package
then you're not using the webrtc.github.io demo. correct?
Do you get empty Blobs with the demo page?

Comment 6 by bl...@pitch.ly, Dec 12 2016

At Pitch.ly we use the pitchly-webcam.js package that I rolled, based on the webrtc.github.io implementation.
When debugging pitchly-webcam.js I noticed that the array of blobs was empty. I then tried reproducing the issue in the webrtc.github.io (as well as simpl.info/mr), was able to, and saw that it was the same problem. 

I did not bother debugging further to determine if the `ondataavailable` event was being triggered, or if the even was empty.
I'm eagerly watching this bug; let me know if there is anything else I can do to help.

Comment 7 by mcasas@chromium.org, Dec 13 2016

[1] seems to work for me on Mac Stable version is 55.0.2883.87.

Can you try with that version?

[1] https://webrtc.github.io/samples/src/content/getusermedia/record/

Comment 8 by bl...@pitch.ly, Dec 13 2016

Just updated and it works again!
Thanks! That was a FAST turn around!
Now I just need to figure out why the aspect ratio isn't being respected
and I'm golden!
https://github.com/pitchly/webcamjs/blob/master/webcam.js#L105-L107

Comment 9 by mcasas@chromium.org, Dec 13 2016

Status: WontFix (was: Unconfirmed)
Re. #8 you might need to rearrange your constraints like e.g. in [1], but I claim no deep knowledge of those arcanes :-)

Re. MR bug, closing per #7.

[1] https://cs.chromium.org/chromium/src/content/browser/webrtc/webrtc_browsertest.cc?q=minAspectRatio&sq=package:chromium&l=70&dr=C

Comment 10 by bl...@pitch.ly, Dec 13 2016

Perfect! Thank you so much @mcasas!
Components: Blink>MediaRecording
Components: -Blink>MediaStream>Recording

Sign in to add a comment