New issue
Advanced search Search tips

Issue 616679 link

Starred by 3 users

Issue metadata

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



Sign in to add a comment

MediaRecorder.ondataavailable does not work on virtual machines for recording video of a chrome browser video

Reported by cool.n...@gmail.com, Jun 2 2016

Issue description

I am trying to recording a video via chrome browser extension using media recorder Apis. My configuration looks as follow

Machine Type: Virtual machine
Operation System: Window 2012
Browser: Chrome

My flow is as follow:

1. Use chrome.desktopCapture.chooseDesktopMedia to get the list of options.
2. Select a chrome browser to window to record.
3. Use navigator.webkitGetUserMedia to get the stream and subsequently embed it into a MediaRecorder stream.
4. Start the media recorder by giving an interval of 1 seconds.

Expected: mediaRecorder.ondataavailable should fire after every 1 second.

Observed: mediaRecorder.ondataavailable is not fired.

Interestingly things work perfectly fine on non-virtual machines. They also work fine on virtual machine if i chose to record an entire screen or an app other than chrome browser.
 
Cc: niklase@chromium.org
Components: Blink>GetUserMedia
Labels: Needs-Feedback
Could you please provide a test case to reproduce the issue from test team end.
Ping cool.ninj (see #1)

Comment 3 by cool.n...@gmail.com, Jun 24 2016

You can verify the code using below test script. As explained in the bug, "event should be fired" is not logged on virtual machines. It works fine on normal physical machines.

var desktopMedia = ['screen', 'window'];
chrome.desktopCapture.chooseDesktopMedia(this.desktopMedia, (id) => {
	var constraints = {
                    "audio": false,
                    "video": { mandatory: { chromeMediaSource: 'desktop', chromeMediaSourceId: id} }
                };
	navigator.webkitGetUserMedia(constraints, (stream) => { var mediaRecorder = new MediaRecorder(stream); mediaRecorder.start(1000);mediaRecorder.ondataavailable = e => { console.log("event should be fired");};}, (error) => {});
});
Project Member

Comment 4 by sheriffbot@chromium.org, Jun 24 2016

Labels: -Needs-Feedback Needs-Review
Owner: tkonch...@chromium.org
Thank you for providing more feedback. Adding requester "tkonchada@chromium.org" for another review and adding "Needs-Review" label for tracking.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
cool.ninj@, have you verified the screen sharing works on the VM without mediasrecorder? If you play the mediastream on a <video> element, can you see it?
Labels: Needs-Feedback
Ping cool.ninj re #5
Owner: ----

Comment 8 by mcasas@chromium.org, Jul 25 2016

Cc: mcasas@chromium.org
Components: -Blink>GetUserMedia Blink>GetUserMedia>Desktop
cool.ninj@, ping re. #5.
Labels: -Needs-Feedback
Status: WontFix (was: Unconfirmed)
Closing in lack of feedback.

Sign in to add a comment