Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Changing movie URL without losing other movie properties
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Changing movie URL without losing other movie properties



Hey all,

I am trying to change the URL of a movie (using javascript) as follows:
document.showreel.SetURL(URL);
However, I find that all the original settings for that object are lost so for example, I have to reexecute the following
document.showreel.SetBgColor("#000000");
document.showreel.SetControllerVisible(false);
document.showreel.SetVolume(255);


etc etc. This however does not usually work (e.g. the controller becomes visible and the javascript call is ignored (maybe it hasn't initialised!?- do i have to set a timeout or something!?). Is there a way to change the URL of a movie without losing the original movie properties?

Thanks very much in advance,

Will Ryan

PS. I am using the AC_Quicktime.js file to embed the movie in the first place e.g.

QT_WriteOBJECT_XHTML('http://cdn.chillibean.net/perl/rplay-2.0.pl?t=H6W63FQK;m=mp4' , '428', '256' , '', 'ID', 'showreel', 'CONTROLLER', 'False', 'KIOSKMODE', 'True', 'ENABLEJAVASCRIPT', 'True', 'QTSRCDONTUSEBROWSER', 'False', 'VOLUME', '0', 'ASPECT', 'Scale', 'AUTOPLAY', 'True', 'BGCOLOR' , '#000000', '#objBGCOLOR', '#000000', 'HREF', 'http://www.willryan.co.uk', 'TARGET', '_blank', 'QTNEXT1', '<http://cdn.chillibean.net/perl/rplay-2.0.pl?t=FMB856S6;m=mp4> T<myself>', 'QTNEXT2', '<http://cdn.chillibean.net/perl/rplay-2.0.pl?t=FMB856S6;m=mp4> T<myself>', 'QTNEXT3', '<http://cdn.chillibean.net/perl/rplay-2.0.pl?t=FMB856S6;m=mp4> T<myself>', 'QTNEXT4', '<http://cdn.chillibean.net/perl/rplay-2.0.pl?t=KCSGZBEH;m=mp4> T<myself>', 'QTNEXT5', '<http://cdn.chillibean.net/perl/rplay-2.0.pl?t=FMB856S6;m=mp4> T<myself>');


which generates the following HTML:


<object id="showreel" width="428" height="256" codebase="http://www.apple.com/qtactivex/qtplugin.cab#version=6,0,2,0"; classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B">


<param value="http://cdn.chillibean.net/perl/rplay-2.0.pl?t=H6W63FQK;m=mp4"; name="src"/>
<param value="False" name="controller"/>
<param value="True" name="kioskmode"/>
<param value="True" name="enablejavascript"/>
<param value="False" name="qtsrcdontusebrowser"/>
<param value="0" name="volume"/>
<param value="Scale" name="aspect"/>
<param value="True" name="autoplay"/>
<param value="#000000" name="bgcolor"/>
<param value="#000000" name="#objbgcolor"/>
<param value="http://www.willryan.co.uk"; name="href"/>
<param value="_blank" name="target"/>
<param value="<http://cdn.chillibean.net/perl/rplay-2.0.pl?t=FMB856S6;m=mp4> T<myself>" name="qtnext1"/>
<param value="<http://cdn.chillibean.net/perl/rplay-2.0.pl?t=FMB856S6;m=mp4> T<myself>" name="qtnext2"/>
<param value="<http://cdn.chillibean.net/perl/rplay-2.0.pl?t=FMB856S6;m=mp4> T<myself>" name="qtnext3"/>
<param value="<http://cdn.chillibean.net/perl/rplay-2.0.pl?t=KCSGZBEH;m=mp4> T<myself>" name="qtnext4"/>
<param value="<http://cdn.chillibean.net/perl/rplay-2.0.pl?t=FMB856S6;m=mp4> T<myself>" name="qtnext5"/>
<embed width="428" height="256" qtnext5="<http://cdn.chillibean.net/perl/rplay-2.0.pl?t=FMB856S6;m=mp4> T<myself>" qtnext4="<http://cdn.chillibean.net/perl/rplay-2.0.pl?t=KCSGZBEH;m=mp4> T<myself>" qtnext3="<http://cdn.chillibean.net/perl/rplay-2.0.pl?t=FMB856S6;m=mp4> T<myself>" qtnext2="<http://cdn.chillibean.net/perl/rplay-2.0.pl?t=FMB856S6;m=mp4> T<myself>" qtnext1="<http://cdn.chillibean.net/perl/rplay-2.0.pl?t=FMB856S6;m=mp4> T<myself>" target="_blank" href="http://www.willryan.co.uk"; #objbgcolor="#000000" bgcolor="#000000" autoplay="True" aspect="Scale" volume="0" qtsrcdontusebrowser="False" enablejavascript="True" kioskmode="True" controller="False" name="showreel" pluginspage="http://www.apple.com/quicktime/download/"; src="http://cdn.chillibean.net/perl/rplay-2.0.pl?t=H6W63FQK;m=mp4"; type="video/mp4"/>
</object>


_______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-API mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.