Skip to content

Commit

Permalink
Don't use getUserMedia in a http WPT.
Browse files Browse the repository at this point in the history
Differential Revision: https://phabricator.services.mozilla.com/D93328

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1670561
gecko-commit: 40fc0fa2aef2daf3ab30538dfcf197662b613298
gecko-reviewers: jib
  • Loading branch information
Pehrsons authored and moz-wptsync-bot committed Nov 10, 2020
1 parent dfc3f9a commit 38a34b2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mediacapture-record/MediaRecorder-stop.html
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
}, "MediaRecorder will not fire an exception when stopped after having just been spontaneously stopped");

promise_test(async t => {
const stream = await navigator.mediaDevices.getUserMedia({ audio: true, video: true });
const {stream} = createAudioVideoStream(t);
const recorder = new MediaRecorder(stream);
const events = [];
const startPromise = new Promise(resolve => recorder.onstart = resolve);
Expand All @@ -126,7 +126,7 @@
}, "MediaRecorder will fire start event even if stopped synchronously");

promise_test(async t => {
const stream = await navigator.mediaDevices.getUserMedia({ audio: true, video: true });
const {stream} = createAudioVideoStream(t);
const recorder = new MediaRecorder(stream);
const events = [];
const startPromise = new Promise(resolve => recorder.onstart = resolve);
Expand Down

0 comments on commit 38a34b2

Please sign in to comment.