31 lines
760 B
HTML
31 lines
760 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<script src=media-file.js></script>
|
|
<script src=video-test.js></script>
|
|
<script>
|
|
function finish()
|
|
{
|
|
logResult(event.type == "loadeddata", "MediaPlayer extracted extension from src url.");
|
|
consoleWrite("");
|
|
endTest();
|
|
}
|
|
|
|
|
|
function start()
|
|
{
|
|
findMediaElement();
|
|
waitForEventAndEnd('loadeddata', finish);
|
|
waitForEvent('error', finish);
|
|
video.src = findMediaFile("video", "content/test") + "#01.00.xyz";
|
|
}
|
|
</script>
|
|
|
|
</head>
|
|
<body onload="start()">
|
|
|
|
<video controls ></video>
|
|
|
|
</body>
|
|
</html>
|