3 <title>Loading corrupted video with proper metadata
</title>
4 <script src=../../../media-resources/media-file.js
></script>
5 <script src=../../../media-resources/video-test.js
></script>
7 function loadedmetadata(e
)
9 consoleWrite("loaded metadata of media file");
14 consoleWrite("failed to load media file");
15 testExpected("video.networkState", HTMLMediaElement
.NETWORK_IDLE
);
23 waitForEvent('loadedmetadata', loadedmetadata
);
24 waitForEvent("error", error
);
26 var movie
= findMediaFile("video", "resources/test");
27 var type
= mimeTypeForExtension(movie
.split('.').pop());
28 video
.src
= "video-load-metadata-decode-error.cgi?name=" + movie
+ "&type=" + type
;
33 <body onload=
"start()">
34 <video id=
"video"></video>
36 This test case simulates a decode error after loading meta data of a video.
<br/><br/>