Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / HTML, CSS, Scripts / JavaScript / November 2005



Tip: Looking for answers? Try searching our database.

Quicktime SetURL from Javascript

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
ghassett - 30 Nov 2005 00:06 GMT
Hello,

When I have a Quicktime object embedded in my web page, and I use
Javascript to set its URL, the clip always starts playing immediately,
even if I have the player's autoplay property set to false.  Here is a
code snippet:

   <EMBED width="100%" height="100%"
          TYPE="video/quicktime"
          PLUGINSPAGE="www.apple.com/quicktime/download"
          name="mediaPlayer"
          autoplay="false"
          loop="false"
          enablejavascript="true">
   </EMBED>

Then, in Javascript, I do this:

   mediaPlayer.SetAutoPlay (false);
   mediaPlayer.SetURL (filename);
   mediaPlayer.Stop ();

You can see that I'm really trying to get it to load the darn clip
without playing it, but Quicktime starts playing the song every time
(even though I force a call to SetAutoPlay(false) before calling
SetURL, and call Stop() after calling SetURL())!!!!

Any help would be appreciated ....

// greg //
VK - 30 Nov 2005 11:19 GMT
> Hello,
>
> When I have a Quicktime object embedded in my web page, and I use
> Javascript to set its URL, the clip always starts playing immediately,
> even if I have the player's autoplay property set to false.

Upon Apple
<http://developer.apple.com/documentation/QuickTime/Conceptual/QTScripting_JavaSc
ript/bQTScripting_JavaScri_Document/chapter_1000_section_4.html
>
you did all what you could. Report the bug (if it's a bug and not an
intentional feature) and do something else.
ghassett - 30 Nov 2005 13:47 GMT
Does anyone have any advice that's more specific than "do something
else"?
VK - 30 Nov 2005 14:13 GMT
> Does anyone have any advice that's more specific than "do something
> else"?

Did you try
ResetPropertiesOnReload(false)
or
SetResetPropertiesOnReload(false)
(Apple gives teo method names).

Did you try Google during all this time? I've got this link on the
first try:
<http://developer.apple.com/documentation/QuickTime/Conceptual/QTScripting_JavaSc
ript/index.html#//apple_ref/doc/uid/TP40001526
>
(type "Quicktime JavaScript buffering" > I'm Feeling lucky > and just
follow the logic)

If it doesn't help then it doesn't help.

The only way around I can think of is to
document.createElement("OBJECT"), set needed properties and put it as
invisible to the page. A way to get around or to crash the browser with
60/40 chances.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.