Force Browser to use or download quicktime

walker6o9
walker6o9 used Ask the Experts™
on
I have an audio player I built, very simple, and it works great if the browser has quicktime.  I need it to provide a link to download quicktime though if the browser doesn't have quicktime.  I'm also having a problem where Google Chrome plays the song with Windows Media plugin, even though it has quicktime, so I need to force it to use quicktime.  The code I'm currently using is very simple:

 <div id="player"><embed height="16" width="500" autostart="false" src="mysong.mpg">        </div>
           
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
//you can ask a question first
if ( confirm("You need Mpeg player for this page. Are you sure that it is installed?")
{
   //just go about normal business;
}
else
{
   window.open("download link url");
}
NerdsOfTechTechnology Scientist

Commented:
force via object
<object height="16" width="500"
classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"
codebase="http://www.apple.com/qtactivex/qtplugin.cab">
<param name="src" value="mysong.mpg">
<param name="autostart" value="false">
<param name="controller" value="false">
<embed height="16" width="500" autostart="false" src="mysong.mpg" autoplay="false" controller="false"
pluginspage="http://www.apple.com/quicktime/download/">
</embed>
</object> 

Open in new window

Author

Commented:
This worked, except that in Chrome it neither redirects nor shows the player.  It's just blank and a little q in the middle.
Introduction to Web Design

Develop a strong foundation and understanding of web design by learning HTML, CSS, and additional tools to help you develop your own website.

NerdsOfTechTechnology Scientist

Commented:
That means the problem is solved :)

Chrome has an issue with quicktime -- that's a whole different ballgame


See if this helps:
Download latest quicktime player and when installed, open the player and go to Edit>preferences>quicktime preferences then file types TAB, click on USE DEFAULT on bottom and press ok. Restart system

Author

Commented:
Do you have any suggestions about what to do about the Quicktime/Chrome issue, since a decent amount of my site's viewers will be using Chrome.
NerdsOfTechTechnology Scientist

Commented:
Supposedly there is a quicklime "alternative" but it is buggy too I hear. Can you possibly convert the movie to flash for main-compatibility?

Author

Commented:
Ipads and iphones are a much bigger market share for my demographic. Maybe I could try a browser detect and run windows media player on chrome.
NerdsOfTechTechnology Scientist

Commented:
windows media player is for PC though. You just mentioned two apple OS products. Maybe you can convert to flash?
Technology Scientist
Commented:
Here is the QT alternative:

http://download.cnet.com/QuickTime-Alternative/3000-2139_4-10633500.html?tag=mncol;1

Try this as alternative. Or optionally you could detect chrome as the "user-agent" and do something special for chrome (such as provide a link to the above QT alternative, show alt movie object type, etc.).
Top Expert 2007

Commented:
NerdsOfTech provided an answer ( http:#a34031036 ) and a work-around ( http:#a34040177 ) despite the Asker's shifting requirements.

All points should go to NerdsOfTech.
This question has been classified as abandoned and is being closed as part of the Cleanup Program. See my comment at the end of the question for more details.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial