Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Safari, QuickTime, and JavaScript Broken?



I have been racking my head over this for a week now.

I am attempting to create an embedded QuickTime audio player for our in
house audio library. This embedded QuickTime player needs to be accessible
through JavaScript. Everything works perfect in Internet Explorer on Windows
and Firefox on Windows or Mac but it absolutely will not work in Safari on
Mac.

I have tested with these browser/os versions.
    IE 6.0/WinXP/Good
    IE 7.0/WinXP/Good
    FireFox 1.5/WinXP/Good
    FireFox 1.5/Mac 10.4.7/Good
    Safari 2.0/Mac 10.4.7/Broken

Below is example code for how how set up the embedded player and then
program it. Sorry I can't provide a direct link as our in house library is
not publicly accessible.


<code for Internet Explorer>
<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"
codebase="http://www.apple.com/qtactivex/qtplugin.cab";
type="video/quicktime" width="120" height="16" id="QTPlayerObj">
<param name="controller" value="true" />
<param name="autoplay" value="false" />
<param name="cache" value="false">
<param name="kioskmode" value="true">
</object>
</code for IE>

<code for Firefox & Safari>
<object type="video/quicktime" data="" width="120" height="16"
id="QTPlayerObj" name="QTPlayerObj"
codebase="http://www.apple.com/qtactivex/qtplugin.cab";>
<param name="autoplay" value="true" />
<param name="controller" value="true" />
<param name="cache" value="false">
<param name="kioskmode" value="true">
<param name="EnableJavaScript" value="true">
</object>
</code for FF & S>

<Scripting QT, all browsers>
<img src="img.gif" onClick="document.QTPlayerObj.SetURL('mp3toplay.mp3');">

Results:
In Internet Explorer and Firefox, click on the image fires the QuickTime
plugin - loading the mp3 file and playing it.

In Safari nothing happens. When I check the JavaScript Console I see this
error:
"Value undefined (result of expression document.QTPlayerObj.SetURL) is not
object."


I really need some help on this one as nothing I have tried has made this
work in Safari.

Charles

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quicktime-users/email@hidden

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 © 2007 Apple Inc. All rights reserved.