I am struggling to get IE to play a quicktime file.
I have a small function that, once the page is loaded, sets the <param
src> value to a file in the same directory. The function works with FF
v3+ but I can only get IE to work if I specify the src statically
(within the HTML) whereas I want to set the src dynamically.
Is my javascript ok? Is there some trick I am missing with IE7 that
might help me achieve this?
I've created a snippet below. I can't really supply a quicktime file
on the list :-/ Any help is much appreciated.
Thanx,
Dp.
<!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" >
<title>Test</title>
<script type='text/javascript'>
function init() {
var file = 'k0010009-h.264.watermarked.mov';
var MyParam = document.getElementById("quickTimeParam"); // Param fo IE.
// alert(MyParam+' '+MyParam.id);
MyParam.setAttribute('src', file);
var MyEmbed = document.getElementById("quickTimeEmbed"); // Param fo Netscape
MyEmbed.setAttribute('src', file);
}
</script>
</head>
<body onload="init()">
<div id="movContainer">
<object id="quickTimeObject"
CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" width="480"
height="380"
type='video/quicktime' CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab">
<param name="src" value="Blank.mov" id="quickTimeParam">
<param name="loop" value="false">
<param name="controller" value="true">
<param name="autoplay" value="true">
<embed src="Blank.mov" width="480" height="400"
controller="true" loop="false" autoplay="true"
id='quickTimeEmbed'></embed>
</object>
</div>
</body>
</html>
------------------------------------
Visit http://aiaiai.com for more groups to joinYahoo! Groups Links
<*> To reply to this message, go to:
http://groups.yahoo.com/group/JavaScript_Official/post?act=reply&messageNum=16670
Please do not reply to this message via email. More information here:
http://help.yahoo.com/help/us/groups/messages/messages-23.html
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/JavaScript_Official/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:JavaScript_Official-digest@yahoogroups.com
mailto:JavaScript_Official-fullfeatured@yahoogroups.com
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/JavaScript_Official/
<*> To unsubscribe from this group, send an email to:
JavaScript_Official-unsubscribe@yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
0 comments:
Post a Comment