mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-08-21 20:03:08 +09:00
14 lines
577 B
HTML
14 lines
577 B
HTML
<video></video>
|
|
<script src="../../../media-resources/media-file.js"></script>
|
|
<script src="../../../media-resources/video-test.js"></script>
|
|
<script>
|
|
waitForEvent('loadedmetadata', function() {
|
|
alert_assert('PASS');
|
|
endTestLater();
|
|
});
|
|
// Find a supported media file.
|
|
var mediaFile = findMediaFile("video", "content/test");
|
|
var mimeType = mimeTypeForFile(mediaFile);
|
|
video.src = "http://{{host}}:{{ports[http][0]}}/resources/load-and-stall.cgi?name=../../../media/" + mediaFile + "&mimeType=" + mimeType + "&stallAt=100000";
|
|
|
|
</script>
|