Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(758)

Side by Side Diff: chrome/test/data/android/media/video-play.html

Issue 1810333004: Replace proprietary codec based test media with open codec based versions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Disable test per zqzhang. Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 <html> 1 <html>
2 <title>test</title> 2 <title>test</title>
3 <body bgcolor="Silver"> 3 <body bgcolor="Silver">
4 <video id='video1' src="test.mp4" controls></video> 4 <video id='video1' src="test.webm" controls></video>
5 <script> 5 <script>
6 var video = document.getElementById('video1'); 6 var video = document.getElementById('video1');
7 var mediaElement = video; 7 var mediaElement = video;
8 8
9 video.oncanplaythrough = function() { 9 video.oncanplaythrough = function() {
10 document.title = 'ready_to_play'; 10 document.title = 'ready_to_play';
11 } 11 }
12 12
13 video.onended = function(e) { 13 video.onended = function(e) {
14 document.title = 'ended'; 14 document.title = 'ended';
15 } 15 }
16 16
17 function playvideo() { 17 function playvideo() {
18 mediaElement.play(); 18 mediaElement.play();
19 } 19 }
20 20
21 </script> 21 </script>
22 <button id="button1" onclick="playvideo()">Click me</button> 22 <button id="button1" onclick="playvideo()">Click me</button>
23 </body> 23 </body>
24 </html> 24 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698