I don't know much about playing videos with classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95", but I do know how to dynamically load YouTube videos.
So if you would decide to upload your videos to YouTube, you could play them using the following (which is a simple version of THIS; script for using a selectbox for loading videos included):
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="Content-Style-Type" content="text/css">
<meta http-equiv="Content-Script-Type" content="text/javascript">
<meta http-equiv="imagetoolbar" content="no" >
<!--<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7">-->
<title></title>
<script type="text/javascript">
//This script enables execution of scripts by putting them in the options of selectboxes (if the text of a given option corresponds with the contents of a given script, then the script is executed when the option is clicked on).
function load_script_container()
{var div_node=document.createElement('div');
div_node.setAttribute("id", "script_container");
document.body.appendChild(div_node);}
//window.onload=load_script_container (does not work correctly in IE7, so we do it with a timeout)
setTimeout("load_script_container()",500)
function javascript_in_selectbox(which_box) {
var optionValue=document.getElementById(which_box).options[document.getElementById(which_box).selectedIndex].value;
if (optionValue=="none") {}
else {
var script_inside_selectbox_option = document.createElement('script');
script_inside_selectbox_option.type = 'text/javascript';
script_inside_selectbox_option.text = optionValue;
while(document.getElementById("script_container").firstChild)
{document.getElementById("script_container").removeChild(document.getElementById("script_container").firstChild);}
document.getElementById("script_container").appendChild(script_inside_selectbox_option);
}
}
</script>
<script type="text/javascript">
/* Script for loading YouTube videos.
Usage (just some examples):
load_video('XT_1iRIQqsQ','') (video starts at the beginning;
load_video('XT_1iRIQqsQ',null) (video starts at the beginning;
load_video('XT_1iRIQqsQ',0) (video starts at the beginning;
load_video('XT_1iRIQqsQ',50) (video starts at 50 secs from start;
etc.
*/
function load_video(video_id,beginpoint)
{
frames['my_videos'].location.replace('http://www.youtube.com/embed/'+video_id+'?start='+beginpoint+'&rel=0&autoplay=1&showinfo=0&autohide=0&modestbranding=1');
}
</script>
</head>
<body>
<div style="position: absolute; top:50%; left: 5px">
<select name="some_selectbox" id="some_selectbox" onchange="javascript_in_selectbox('some_selectbox'); selectedIndex=0">
<option value="none" selected >Choose Your Video</option>
<option value="load_video('Tek_i2d7bP4',0)" >The Crog-Magnon Man</option>
<option value="load_video('jmOxTx0szas',0)">Mendelssohn's Fourth, Second Movement</option>
<option value="load_video('vt4X7zFfv4k',20)">Soccer (20 secs from start)</option>
</select>
</div>
<div style="position: absolute; left:145px; top: 45px; right: 145px; bottom: 45px">
<iframe name="my_videos" src="http://www.youtube.com/embed/Tek_i2d7bP4?start=0&rel=0&autoplay=1&showinfo=0&autohide=0&modestbranding=1" style="position: absolute; width:100%; height:100%"></iframe>
</div>
</body>
</html>
Arie Molendijk.
Bookmarks