Fri, 16 Jan 2015 04:50:19 +0100
Replace accessor implementation with direct member state manipulation, by
request https://trac.torproject.org/projects/tor/ticket/9701#comment:32
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> |