473,327 Members | 2,112 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

Quicktime and JS - what am I missing?

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.

<html>
<body>
<OBJECT
classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"
codebase="http://www.apple.com/qtactivex/qtplugin.cab"
width="320" height="256" id="movie1">
<PARAM name="src" value="test.mov">
<EMBED HEIGHT=256 WIDTH=320
SRC="test.mov" TYPE="video/quicktime"
PLUGINSPAGE="www.apple.com/quicktime/download"
EnableJavaScript="true" NAME="movie1">
</OBJECT>

//works:
<a href="javascript:alert
(document.movie1.GetQuickTimeVersion());">version</a>

//doesn't:
<script language="JavaScript">
<!--
alert (document.movie1.GetQuickTimeVersion());
// -->
</script>

</body>
</html>

Am I missing something really basic here?

Thanks.

Jun 20 '07 #1
1 1764
On Jun 20, 12:28 pm, Binba <drorwo...@yahoo.comwrote:
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.

<html>
<body>
<OBJECT
classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"
codebase="http://www.apple.com/qtactivex/qtplugin.cab"
width="320" height="256" id="movie1">
<PARAM name="src" value="test.mov">
<EMBED HEIGHT=256 WIDTH=320
SRC="test.mov" TYPE="video/quicktime"
PLUGINSPAGE="www.apple.com/quicktime/download"
EnableJavaScript="true" NAME="movie1">
</OBJECT>

//works:
<a href="javascript:alert
(document.movie1.GetQuickTimeVersion());">version</a>
Assuming that movie1 is an object and that GetQuickTimeVersion is
necessarily a mehthod supported by that object seems a little error
prone. Try:

var movie = document.movie1;
if (movie && tyepof movie.GetQuickTimeVersion == 'function') {
alert( movie.GetQuickTimeVersion() )
} else {
// Either movie1 isn't an element in one of the standard
collections
// or it doesn't have a GetQuickTimeVersion method
}

That should also check whether the QuickTime plugin is installed. I
can't test it right now since I don't have (or want) QuickTime on my
Windows machine. I can test it later on a Mac if you want.
>
//doesn't:
<script language="JavaScript">
<!--
The language attribute is deprecated, type is required. There is no
point to HTML comments inside script elements, just don't use them.

<script type="text/javscript">
To be strictly standards compliant you should be using
type="application/javascript" but it will cause your scripts to fail
in at least some browsers. Some suggest ignoring validation errors
and using:

<script... </script>
--
Rob

Jun 20 '07 #2

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

Similar topics

0
by: DG | last post by:
I have been having problems trying to view movies with the browser's Quicktime 7 plugin in our intranet. The system is password-protected and uses normal PHP sessions and cookies for user...
1
by: Andrea B. | last post by:
Hi, Does anyone know to open a RTP session using Quicktime ? Does it open RTP multicast ? Do I need a DSP protocol in order to play multicast video using Quicktime ? Thanks, Andrea
0
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...
7
by: Sean | last post by:
Hi I've written an HTML page that has a link to an MPG file, to be burned onto a "Demo CD". The MPG file is quite big - 500MB. On my computer, it works fine - clicking the link opens up Windows...
10
by: comp.lang.php | last post by:
echo mime_content_type('/var/www/html/video/small.mov'); // 1.5mb Quicktime video returns "video/quicktime" echo mime_content_type('/var/www/html/video/huge.mov'); // 10.5mb Quicktime video...
2
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. ...
15
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";...
0
by: Heidi V.Hundåla | last post by:
Hi! I have a Windows Forms Application, which I am making in Visual Studio 2005, hence I am using the 2.0 framework. I want to include a Quicktime player/plugin in order to play 3gp-files. ...
22
by: Michael Levin | last post by:
I have a very simple page, which shows 3 Quicktime movies in a table. I think I'm using just standard simple HTML. In Netscape or Safari on a Mac, they look fine. In Internet Explorer on a PC, the...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.