Long story short, I have an HTML5 video that's supposed to play in a DMF output window. However, the video doesn't seem to play at all.
I duplicated the HTML file and changed it to replace the video code with "TESTSTUFF", and it shows the text just fine in the right position.
Is it possible that there are issues with HTML5 in Dream Seeker browsers? I heard that Dream Seeker uses whichever browser is default on the client computer.
I noticed that the video actually plays when I run the HTML file through Chrome, my default browser, but it still doesn't play the video in Dream Seeker.
Here's the HTML5 Code. Any help is appreciated!
<!DOCTYPE html>
<HTML>
<HEAD>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<style>
video {
<!-- position: fixed; -->
right: 0;
bottom: 0;
min-width: 50%;
min-height: 50%;
max-width: 90%;
max-height:90%;
width: auto;
height: auto;
</style>
</HEAD>
<BODY bgcolor=black>
<center><video width="853" height="480" autoplay="autoplay" id = "intro">
<source src="file:///C:/Program Files/NARUTO SHIPPUDEN Ultimate Ninja STORM 2/IntroMovie.mp4" type="video/mp4" />
Your browser does not support HTML5 video.
</video></center>
</BODY>
<script type="text/javascript">
window.onload = function() {
window.addEventListener("click", function(){
var video = document.getElementById("intro");
video.pause();
window.location = "byond://winset?command=skipIntro";
});
window.addEventListener("contextmenu", function(){
var video = document.getElementById("intro");
video.pause();
window.location = "byond://winset?command=skipIntro";
});
window.addEventListener("keydown", function(){
var video = document.getElementById("intro");
video.pause();
window.location = "byond://winset?command=skipIntro";
});
}
</script>
</HTML>
You can force it into "Edge" mode, which will utilize whichever version of IE the client has installed. Keep in mind though that this will create inconsistencies between what your players see since IE tends to vary their standard usage wildly between versions.
Another thing is that you'll probably want to use browse_rsc on your video's file, otherwise it's going to try to load it from a local copy, which your players probably won't have.
Adding that to your <head> tag will force the browser into Edge mode. Another thing to keep in mind is that IE's HTML5 support is still pretty spotty even in modern versions so