Roll src/third_party/WebKit d9c6159:8139f33 (svn 201974:201975)
[chromium-blink-merge.git] / chrome / test / data / android / media / video-play.html
blob6c264af5be19dd9899d19b944e7d270ad41610f3
1 <html>
2 <title>test</title>
3 <body bgcolor="Silver">
4 <video id='video1' src="test.mp4" controls></video>
5 <script>
6 var video = document.getElementById('video1');
7 var mediaElement = video;
9 video.oncanplaythrough = function() {
10 document.title = 'ready_to_play';
13 video.onended = function(e) {
14 document.title = 'ended';
17 function playvideo() {
18 mediaElement.play();
21 </script>
22 <button id="button1" onclick="playvideo()">Click me</button>
23 </body>
24 </html>