Video sometimes flickers when playing to AppleTV
[WebKit-https.git] / LayoutTests / platform / mac / media / audio-session-category-audio-autoplay.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4     <title>audio-session-category-track-change</title>
5     <script src="../../../media/video-test.js"></script>
6     <script src="../../../media/media-file.js"></script>
7     <script>
8     function go() {
9         audio = video = mediaElement = document.querySelector('audio');
10         run('internals.settings.setShouldManageAudioSessionCategory(true)');
11         run('audio.autoplay = true');
12         run('audio.src = findMediaFile("audio", "../../../media/content/test")');
13         waitForEvent('playing', playing);
14     }
15
16     async function playing() {
17         await testExpectedEventually('internals.audioSessionCategory()', 'MediaPlayback');
18         endTest();
19     }
20     </script>
21 </head>
22 <body onload="go()">
23     <audio controls></video>
24 </body>
25 </html>