4 <script src=
"video-test.js"></script>
7 video
= mediaElement
= document
.getElementsByTagName('video')[0];
9 testExpected("video.canPlayType('audio/webm')", "maybe");
10 testExpected("video.canPlayType('video/webm')", "maybe");
12 testExpected("video.canPlayType('audio/webm; codecs=vorbis')", "probably");
13 testExpected("video.canPlayType('video/webm; codecs=vp8,vorbis')", "probably");
14 testExpected("video.canPlayType('video/webm; codecs=vp8')", "probably");
15 testExpected("video.canPlayType('video/webm; codecs=vp8.0')", "probably");
16 testExpected("video.canPlayType('video/webm; codecs=vp8.0,vorbis')", "probably");
17 testExpected("video.canPlayType('video/webm; codecs=vp8.1')", "");
19 testExpected("video.canPlayType('video/webm; codecs=vp9')", "probably");
20 testExpected("video.canPlayType('video/webm; codecs=vp9,vorbis')", "probably");
21 testExpected("video.canPlayType('video/webm; codecs=vp9.0')", "probably");
22 testExpected("video.canPlayType('video/webm; codecs=vp9.0,vorbis')", "probably");
23 testExpected("video.canPlayType('video/webm; codecs=vp9.1')", "");
25 testExpected("video.canPlayType('audio/webm; codecs=opus')", "probably");
26 testExpected("video.canPlayType('video/webm; codecs=vp9,opus')", "probably");
27 testExpected("video.canPlayType('video/webm; codecs=vp9.0,opus')", "probably");
28 testExpected("video.canPlayType('video/webm; codecs=vp8,opus')", "probably");
29 testExpected("video.canPlayType('video/webm; codecs=vp8.0,opus')", "probably");
35 <body onload=
"start()">
36 <video controls
></video>
37 <p>Test HTMLMediaElement
<em>canPlayType()
</em> method for webm media containers.
</p>
38 <p>These tests may be expected to fail if the WebKit port does not support the format.
</p>