4 <script src=
"video-test.js"></script>
7 video
= mediaElement
= document
.getElementsByTagName('video')[0];
9 testExpected("video.canPlayType('audio/ogg')", "maybe");
10 testExpected("video.canPlayType('video/ogg')", "maybe");
12 testExpected("video.canPlayType('audio/ogg; codecs=vorbis')", "probably");
13 testExpected("video.canPlayType('audio/ogg; codecs=opus')", "probably");
14 testExpected("video.canPlayType('video/ogg; codecs=theora')", "probably");
15 testExpected("video.canPlayType('video/ogg; codecs=theora,vorbis')", "probably");
21 <body onload=
"start()">
22 <video controls
></video>
23 <p>Test HTMLMediaElement
<em>canPlayType()
</em> method for ogg media containers.
</p>
24 <p>These tests may be expected to fail if the WebKit port does not support the format.
</p>