| <script src=media-file.js></script> |
| <script src=video-test.js></script> |
| run("internals.beginMediaSessionInterruption('System')");; |
| setTimeout(checkState, 100); |
| consoleWrite("<br>100ms timer fired..."); |
| testExpected("video.paused", true); |
| setTimeout(checkState, 100); |
| run("internals.endMediaSessionInterruption('')"); |
| function canplaythrough() |
| failTest('This test requires window.internals.'); |
| waitForEvent('canplaythrough', canplaythrough); |
| waitForEvent('playing', playing); |
| video.src = findMediaFile("video", "content/test"); |
| <video controls ></video> |
| <p>Test that playback is paused by an interruption, and that ending the interruption does automatically resume playback.</p> |