mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-10 05:08:36 +02:00
Block-stop should be dispatched before audio-playback, so we can check block event first. Also add "loop" attribute for video to avoid getting the wrong pause state. MozReview-Commit-ID: 3WHuJGsZCPn --HG-- extra : rebase_source : 75147657a727bf34aacf9feb1674ccf29142a0eb
16 lines
351 B
HTML
16 lines
351 B
HTML
<!DOCTYPE html>
|
|
<head>
|
|
<meta content="text/html;charset=utf-8" http-equiv="Content-Type">
|
|
<meta content="utf-8" http-equiv="encoding">
|
|
</head>
|
|
<body>
|
|
<audio id="testAudio" src="audio.ogg" loop></audio>
|
|
<script type="text/javascript">
|
|
|
|
var audio = document.getElementById("testAudio");
|
|
audio.play();
|
|
audio.pause();
|
|
audio.play();
|
|
|
|
</script>
|
|
</body>
|