author Alastor Wu <>
Thu, 02 Mar 2017 17:38:53 +0800
changeset 491826 506068a33fa0d55b848c3dcc1eea11e7b57410c7
parent 464951 726ee922483f6e3e12a2921fbcdbe7c5616aafe8
permissions -rw-r--r--
Bug 1341062 - part1 : wait for audioplayback event to ensure the media element has been resumed. 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

<!DOCTYPE html>
  <meta content="text/html;charset=utf-8" http-equiv="Content-Type">
  <meta content="utf-8" http-equiv="encoding">
<audio id="testAudio" src="audio.ogg" loop></audio>
<script type="text/javascript">

var audio = document.getElementById("testAudio");;