OLD | NEW |
---|---|
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="video-test.js"></script> | 4 <script src="video-test.js"></script> |
5 <script> | 5 <script> |
6 function start() { | 6 function start() { |
7 video = mediaElement = document.getElementsByTagName('video')[0] ; | 7 video = mediaElement = document.getElementsByTagName('video')[0] ; |
8 | 8 |
9 testExpected("video.canPlayType('audio/webm')", "maybe"); | 9 testExpected("video.canPlayType('audio/webm')", "maybe"); |
10 testExpected("video.canPlayType('video/webm')", "maybe"); | 10 testExpected("video.canPlayType('video/webm')", "maybe"); |
11 | 11 |
12 testExpected("video.canPlayType('audio/webm; codecs=vorbis')", " probably"); | 12 testExpected("video.canPlayType('audio/webm; codecs=vorbis')", " probably"); |
13 testExpected("video.canPlayType('video/webm; codecs=vp8,vorbis') ", "probably"); | 13 testExpected("video.canPlayType('video/webm; codecs=vp8,vorbis') ", "probably"); |
scherkus (not reviewing)
2013/11/11 21:36:36
think you can add another case for vp8 by itself?
vignesh
2013/11/11 23:58:17
Done.
| |
14 | 14 |
15 testExpected("video.canPlayType('video/webm; codecs=vp9')", "pro bably"); | |
scherkus (not reviewing)
2013/11/11 21:36:36
hrmm.. we should probably be exercising vp9 and vp
vignesh
2013/11/11 23:58:17
Done. Will add the opus and vp9+opus tests after w
| |
16 | |
15 endTest(); | 17 endTest(); |
16 } | 18 } |
17 </script> | 19 </script> |
18 </head> | 20 </head> |
19 <body onload="start()"> | 21 <body onload="start()"> |
20 <video controls></video> | 22 <video controls></video> |
21 <p>Test HTMLMediaElement <em>canPlayType()</em> method for webm media co ntainers.</p> | 23 <p>Test HTMLMediaElement <em>canPlayType()</em> method for webm media co ntainers.</p> |
22 <p>These tests may be expected to fail if the WebKit port does not suppo rt the format.</p> | 24 <p>These tests may be expected to fail if the WebKit port does not suppo rt the format.</p> |
23 </body> | 25 </body> |
24 </html> | 26 </html> |
OLD | NEW |