Google Answers Logo
View Question
 
Q: Embedding Windows Media Player in IE & Firefox ( No Answer,   1 Comment )
Question  
Subject: Embedding Windows Media Player in IE & Firefox
Category: Computers > Internet
Asked by: dogtanian-ga
List Price: $10.00
Posted: 13 Oct 2005 12:55 PDT
Expires: 12 Nov 2005 11:55 PST
Question ID: 579898
Hi

I'm trying to embed Windows Media Player in Wordpress so that I can
stream mp3's with Firefox (v1.0.7) and IE browsers.

I've found loads of implementations and they all seem to work except
for one problem...

Whenever I use Firefox, the embeded media player autostarts
automaticly... I really don't want this to happen because I want to
embed more than one media player object (with different source mp3's)
in the same page.

I've tried adjusting the 'autostart' parameter to 'true', '0' and
'-1', but although the parameter is effective in IE (i.e. it doesn't
autostart) Firefox seems to ignore the paremeter and autostart anyway.

The code i'm using at the moment is as follows:

<OBJECT id='mediaPlayer' width="320" height="285" 
classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95' 
codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701'
standby='Loading Microsoft Windows Media Player components...'
type='application/x-oleobject'>
<param name='fileName' value="http://www.wintertactics.com/test/buuren.mp3">
<param name='animationatStart' value='false'>
<param name='transparentatStart' value='false'>
<param name='autoStart' value="false">
<param name='showControls' value="true">
<param name='loop' value="false">
<EMBED type='application/x-mplayer2'
pluginspage='http://microsoft.com/windows/mediaplayer/en/download/'
id='mediaPlayer' name='mediaPlayer' displaysize='4' autosize='-1' 
bgcolor='black' showcontrols="true" showtracker='-1' 
showdisplay='0' showstatusbar='-1' videoborder3d='-1' width="320" height="285"
src="http://www.mysite.com/mydir/myfile.mp3" autostart="-1"
designtimesp='5311' loop="false"> </EMBED>
</OBJECT>


I've spent ages trying to solve this problem but the same bug (?)
presents itself time and time again.

One more thing... I want to avoid using Javascript.

Thanks!

Alex
http://www.wintertactics.com

Request for Question Clarification by sublime1-ga on 13 Oct 2005 13:18 PDT
dogtanian...

Since you're providing several MP3s, and want the visitors
to have the option of choosing between them, I'm not clear
on why you'd insist on embedding multiple players, especially
since not every visitor will have WMP installed.

Why not just provide links which can be opened (or not) with
the default player of the visitor?

sublime1-ga

Clarification of Question by dogtanian-ga on 13 Oct 2005 16:44 PDT
Hi Sublime1

Yeah - I completely see what you mean... coming down on the WMP option
was a pretty painful decision to make, particularly because I myself
occasionaly use Knoppix/Mandrake as an OS.

I know my rationale probably kinda sucks, but since the audio will be
part of a blog entry I guess I just wanted it to look 'Pretty' and
present it so that users could simply click on a "Play" button, rather
than decide whether to save the audio to their HD etc.

Also some of my audio files will be quite big; I want the user to be
able to buffer+stream it. I suspect that some users will be running
audio playback software that'll want to download the entire file
before playing it. As far as i'm aware, anybody running post win2k/me
has WMP bundled witht eh OS anyway.

Finally, I toyed with the idea of using a plain old EMBED that would
allow the browser to decide which helper application to use depending
on the MIME type, but since Mozilla tends to like Quicktime for
rich-media playback, I wanted to avoid people having to download
anything.

I really hate the fact that I'm shunning non-Windows users, but I
guess I'll try and justify it by convincing myself that people using a
Linux platform will have far better things to do than listen to my
bits of streaming audio.

Clarification of Question by dogtanian-ga on 13 Oct 2005 16:54 PDT
By the way... I've just managed to find the answer to my question:

I've tried using autostart="0" again, and it seems to work now.
My conclusion is that Firefox has a minor bug (although it's not so
much a bug than an omission in the object handler thingie for the
OBJECT/EMBED TAG).

Seeing that I've now solved the problem myself, I'd now like to
allocate the $10 to anyone who submits this issue as a bug-report to
Mozilla in accordance with Mozilla's bug-reporting process.

Request for Question Clarification by sublime1-ga on 13 Oct 2005 21:11 PDT
dogtanian...

I started the process of writing up a bug report, but, aside
from the extensive searching needed to preclude the possibility
of submitting a duplicate bug report, they would need specifics
which are best provided by showing them the page on which the
script is failing.

I'll pass...

sublime1-ga
Answer  
There is no answer at this time.

Comments  
Subject: Re: Embedding Windows Media Player in IE & Firefox
From: vyasa-ga on 13 Oct 2005 16:58 PDT
 
dogtanian, your idea of jst a plain <EMBED> would probably be the best
for this situation.

The only problem I can think is of
'http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701'
- this is an activex control, which would only work in IE (I don't
know whether this is a problem for Firefox, but it's all I can see
that might be).

Your reason for not using an <EMBED> was that Firefox 'tends to like
Quicktime for rich-media playback', and you didn't want people to
download anything.
As far as I know, Quicktime in Firefox doesn't actually download,
rather it streams (this can be annoying when you *do* want to download
an mp3 in Firefox, yet it just streams). [Firefox 1.0.6+]
So really there is no disadvantage for <EMBED>ing your mp3.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy