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 descriptionI 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.
,
Jun 23 2016
Ping cool.ninj (see #1)
,
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) => {});
});
,
Jun 24 2016
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
,
Jul 3 2016
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?
,
Jul 11 2016
Ping cool.ninj re #5
,
Jul 13 2016
,
Jul 25 2016
cool.ninj@, ping re. #5.
,
Aug 17 2016
Closing in lack of feedback. |
||||||
►
Sign in to add a comment |
||||||
Comment 1 by tkonch...@chromium.org
, Jun 9 2016Components: Blink>GetUserMedia
Labels: Needs-Feedback