Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
[Safari] Serving Quicktime with Javascript
Old 12-03-2007, 03:56 PM [Safari] Serving Quicktime with Javascript
Junior Talker

Posts: 2
Name: Aaron Matthew Kaiser
Trades: 0
Hello. I have encountered a problem and can not seem to find any similar issues online and hope that someone here can help me.

I am working on a client site and one page has several quicktime video files (it's the reel page for a production company). Instead of creating a seperate page for each file, I am using Javascript and innerHTML to replace the div content with the new video file.

I am using onclick behavior within the page and have attached a seperate JS file for the function. This behaves perfectly in IE/Firefox (and even avoids the IE "activate" annoyance, which is a plus).

The problem then comes in with Safari on the Mac. When you click on another file, it begins playing, but does not stop the previous video first. I don't have a Mac and I can't replicate it with the beta of Safari for Windows, but apparently the audio is overlapping and causing a poor user experience.

I could easily move the code out of the JS page and into the HTML page, but that would re-introduce the IE "activation" issue. Does anyone have any suggestions?

Here is the page: http://bluedoor.kaisersolutions.com/work.html

Here is the code:
Code:
 work_content.innerHTML = "<object classid='clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B' width=\"" + qtw + "\" height=\"" + qth + "\" codebase='http://www.apple.com/qtactivex/qtplugin.cab'><param name='src' value=\"" + src + "\"><param name='autoplay' value=\"true\"><param name='controller' value=\"true\"><param name='loop' value=\"false\"><embed src=\"" + src + "\" width=\"" + qtw + "\" height=\"" + qth + "\" autoplay=\"true\" controller=\"true\" loop=\"false\" pluginspage='http://www.apple.com/quicktime/download/'></embed></object>";
aaronkaiser is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 12-03-2007, 08:18 PM Re: [Safari] Serving Quicktime with Javascript
Junior Talker

Posts: 2
Name: Aaron Matthew Kaiser
Trades: 0
As a follow-up, moving the code to be within the page (as opposed to the external JS file), did NOT solve the audio issue as I expected.

Would anyone know if there is a way to write a piece of javascript that would first stop/pause the video, then load the innerHTML coding?
aaronkaiser is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to [Safari] Serving Quicktime with Javascript
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 1.08791 seconds with 12 queries