Refactor the heuristic for showing media controls to take all media sessions into...
[WebKit-https.git] / Tools / TestWebKitAPI / Tests / WebKit2Cocoa / large-videos-playing-video-keeps-controls.html
1 <!DOCTYPE html>
2 <html>
3 <style>
4     video {
5         width: 480px;
6         height: 320px;
7     }
8     #bar {
9         margin-top: 5000px;
10     }
11 </style>
12 <script>
13     function handleLoaded() {
14         document.querySelector("#bar").scrollIntoView();
15         setTimeout(function() {
16             try {
17                 window.webkit.messageHandlers.playingHandler.postMessage("playing");
18             } catch(e) { }
19         }, 0);
20     }
21 </script>
22 <body onload=handleLoaded()>
23     <video autoplay loop id="foo"><source src="large-video-with-audio.mp4"></video>
24     <br>
25     <video id="bar"><source src="large-video-with-audio.mp4"></video>
26 </body>
27 <html>