content/media/test/crashtests/media-element-source-seek-1.html

Wed, 31 Dec 2014 13:27:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 13:27:57 +0100
branch
TOR_BUG_3246
changeset 6
8bccb770b82d
permissions
-rw-r--r--

Ignore runtime configuration files generated during quality assurance.

michael@0 1 <!DOCTYPE html>
michael@0 2 <html class="reftest-wait">
michael@0 3 <script>
michael@0 4 var audioElement = document.createElement("audio");
michael@0 5 audioElement.autoplay = true;
michael@0 6 audioElement.src = "sound.ogg";
michael@0 7 audioElement.onplaying =
michael@0 8 function() {
michael@0 9 audioElement.onseeked =
michael@0 10 function() {
michael@0 11 setTimeout(
michael@0 12 function() {
michael@0 13 document.documentElement.removeAttribute("class");
michael@0 14 }, 100);
michael@0 15 };
michael@0 16 audioElement.currentTime = 0;
michael@0 17 };
michael@0 18
michael@0 19 var context = new window.AudioContext();
michael@0 20 var source = context.createMediaElementSource(audioElement);
michael@0 21 source.connect(context.destination);
michael@0 22 </script>
michael@0 23 </html>

mercurial