Web Hosting Talk







View Full Version : Media Player Embed in FireFox (Not Working)


latheesan
09-15-2006, 07:38 PM
I show a media player on my site using the following code:

<object
id="MediaPlayer" width="242" height="45"
classid="CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6"
standby="Loading..."
type="application/x-oleobject">
<param name="Url" value="playlists/1.asx">
<param name="AutoSize" value="false">
<param name="AutoStart" value="false">
<param name="Balance" value="0">
<param name="DisplaySize" value="0">
<param name="Mute" value="false">
<param name="PlayCount" value="0">
<param name="Rate" value="1.0">

<param name="ShowAudioControls" value="true">
<param name="ShowControls" value="true">
<param name="ShowDisplay" value="false">
<param name="ShowStatusBar" value="false">
<param name="ShowTracker" value="true">
<param name="StretchToFit" value="false">
<param name="TransparentAtStart" value="false">
<param name="Volume" value="100">
<embed type="application/x-mplayer2"
name="mediaplayer"
pluginspage="http://www.microsoft.com/Windows/MediaPlayer"
src="playlists/1.asx"
Width="242"
Height="45"
AutoSize="0"
AutoStart="0"
Balance="0"
DisplaySize="0"
Mute="0"
PlayCount="0"
Rate="1.0"
ShowAudioControls="1"
ShowControls="1"
ShowDisplay="0"
ShowStatusBar="0"
ShowTracker="1"
StretchToFit="0"
TransparentAtStart="0"
Volume="100">
</embed>
</object>

On internet exploerer, it looks normal and the playlist gets loaded and radio begins to play. However on firefox. It does nothing :S

Also, the interface looks so wierd, it looks like really old old media player.

UK-Networks
09-15-2006, 07:51 PM
On firefox use code like this:

<OBJECT ID="Player" CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" WIDTH=400 HEIGHT=29></span>
<PARAM NAME="AutoStart" VALUE="true" >
<PARAM NAME="animationatStart" VALUE="true">
<PARAM NAME="transparentatStart" VALUE="true">
<PARAM NAME="uiMode" VALUE="mini">
<PARAM NAME="URL" VALUE="http://radio1.radioinspiration.org:8000">
<EMBED TYPE="application/x-mplayer2"
SRC="http://radio1.radioinspiration.org:8000"
NAME="Player"
WIDTH="400"
HEIGHT="29"
AUTOSTART="true">
</EMBED>
</OBJECT>

Sorry I not got the time to explain code now:) That will work if you plugin your media URL's

latheesan
09-15-2006, 07:54 PM
Sorry, it doesnt work O.o;

UK-Networks
09-15-2006, 08:03 PM
Link me to your page and i'll have a quick look

latheesan
09-17-2006, 11:57 AM
http://www.soulro.ath.cx/test.php

Ryders
09-18-2006, 09:05 AM
Hey... the player loads fine for me, but nothing plays.... hangs for a few secs.. than I get a 'The plugin has performed an illegal action... you should restart Firefox' crap message.

Also... the player is not skinned (looks like the old win media player) like it usually is.

I have had issues before where my firefox install somehow could not see and/or load media player, so make sure your firefox displays the player for some other sites before trying to change your code.

Hope this helps,

R.