473,503 Members | 1,869 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Quicktime SetURL from Javascript

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 //

Nov 30 '05 #1
3 5348
VK

ghassett wrote:
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_JavaScript/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.

Nov 30 '05 #2
Does anyone have any advice that's more specific than "do something
else"?

Nov 30 '05 #3
VK

ghassett wrote:
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_JavaScript/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.

Nov 30 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
2110
by: Stefan Tietke | last post by:
Hi all, for a realtime simulation of a video installation we want to use Quicktime to read video data from a file or stream and process the data in a realtime Gameblender model. We are trying...
1
2186
by: Creegan | last post by:
I have a webpage with thumbnail images that I want to be able to click on to play associated Quicktime movie files in either IE or Netscape. I'm having difficulty finding any HTML or Javascript...
2
9006
by: Vanga Sasidhar | last post by:
Already posted the same message but the date and time of my machine was set back. and it was listed under the old date. Thats why I am posting the same message again. Please accept this. ...
4
6484
by: Jason P | last post by:
Basically we have a web method with a dynamic URL. The client is developed in C++ and I've been using the webReference.SetUrl( "http://test.example.com..." ) method successfully with various web...
15
7535
by: Encapsulin | last post by:
Hello everybody. I'm trying to change src of quicktime embedded object with javascript: <html><body> <script language="JavaScript"> function Exchange() { document.qtvr.src = "sample2.pano";...
6
4313
by: Encapsulin | last post by:
Hello everybody, is it possible to hide qtvr <object...> (or even change its size to 1 pixel rectangle)? I need to hide qtvr from the page dynamically, if .mov source is empty. For example: ...
1
1772
by: Binba | last post by:
I created the simplest embed QT movie page, and for starters, want to get the version. An HREF event works fine, but otherwise I get a fabulous "Unspecified error". I'm using MSIE6 WinXP SP2. ...
1
2454
by: rockva | last post by:
I am facing this problem of DIV layer going behind the quick time player in IE 7 browser. It works good in Firefox. HTML code that i am using is below. Is some IE specific code required here? Any...
0
7205
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7287
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7348
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7006
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7467
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5021
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3166
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1519
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
397
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.