mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-05 23:07:31 +09:00
import FIREFOX_52_6_0esr_RELEASE from mozilla-esr52 hg repo
This commit is contained in:
commit
dcd9973243
150858 changed files with 23884658 additions and 0 deletions
|
|
@ -0,0 +1,39 @@
|
|||
<!DOCTYPE HTML>
|
||||
<html>
|
||||
<head>
|
||||
<script type="application/javascript" src="mediaStreamPlayback.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<pre id="test">
|
||||
<script type="application/javascript">
|
||||
createHTML({title: "getUserMedia within getUserMedia", bug: "822109" });
|
||||
/**
|
||||
* Run a test that we can complete a playback cycle for a video,
|
||||
* then upon completion, do a playback cycle with audio, such that
|
||||
* the audio gum call happens within the video gum call.
|
||||
*/
|
||||
runTest(function () {
|
||||
return getUserMedia({video: true})
|
||||
.then(videoStream => {
|
||||
var testVideo = createMediaElement('video', 'testVideo');
|
||||
var videoPlayback = new LocalMediaStreamPlayback(testVideo,
|
||||
videoStream);
|
||||
|
||||
return videoPlayback.playMedia(false)
|
||||
.then(() => getUserMedia({audio: true}))
|
||||
.then(audioStream => {
|
||||
var testAudio = createMediaElement('audio', 'testAudio');
|
||||
var audioPlayback = new LocalMediaStreamPlayback(testAudio,
|
||||
audioStream);
|
||||
|
||||
return audioPlayback.playMedia(false)
|
||||
.then(() => audioStream.stop());
|
||||
})
|
||||
.then(() => videoStream.stop());
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
</pre>
|
||||
</body>
|
||||
</html>
|
||||
Loading…
Add table
Add a link
Reference in a new issue