- add sources.
[platform/framework/web/crosswalk.git] / src / chrome / test / data / media / html / media_jerky.html
1 <!-- Used by tests which only need a basic playback. -->
2 <!DOCTYPE html>
3 <html lang="en-US">
4   <head>
5     <title>Basic Media Playback Test</title>
6   </head>
7
8   <body>
9     <div><video autoplay preload></video></div>
10   </body>
11
12   <script type="text/javascript">
13     var div = document.querySelector('div');
14     var video = document.querySelector('video');
15
16     video.addEventListener('playing', function(event) {
17       // Notify PyAuto that the video has started playing..
18       window.domAutomationController.send(true);
19     }, false);
20
21     function startTest(url) {
22       video.src = url;
23     }
24
25     function stopTest() {
26       video.src = '';
27       window.domAutomationController.send(true);
28     }
29
30     function initializeTest(width, height) {
31       // Setup calibration area for Jerky tool.
32       div.style.width = width + 'px';
33       div.style.height = height + 'px';
34       div.style.backgroundColor = '#333333';
35       window.domAutomationController.send(true);
36     }
37   </script>
38 </html>