mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
f55f1ca12b
Conflicts: dom/media/tests/mochitest/test_getUserMedia_exceptions.html --HG-- extra : rebase_source : 61d146fe146021d9114a67d6577ca749b30e2d69
28 lines
796 B
HTML
28 lines
796 B
HTML
<!DOCTYPE HTML>
|
|
<html>
|
|
<head>
|
|
<script type="application/javascript" src="mediaStreamPlayback.js"></script>
|
|
</head>
|
|
<body>
|
|
<pre id="test">
|
|
<script type="application/javascript">
|
|
createHTML({title: "getUserMedia Play Video and Audio Twice", bug: "822109" });
|
|
/**
|
|
* Run a test that we can complete a video playback cycle twice in a row.
|
|
*/
|
|
runTest(function () {
|
|
getUserMedia({video: true, audio: true}).then(stream => {
|
|
var testVideo = createMediaElement('video', 'testVideo');
|
|
var playback = new LocalMediaStreamPlayback(testVideo, stream);
|
|
|
|
return playback.playMedia(false)
|
|
.then(() => playback.playMedia(true))
|
|
.then(() => stream.stop());
|
|
}).then(() => SimpleTest.finish(), generateErrorCallback());
|
|
});
|
|
|
|
</script>
|
|
</pre>
|
|
</body>
|
|
</html>
|