View Full Version : Player on website will not work in Firefox.
Garfunkel
04-14-2006, 07:18 AM
Hi, I am making a website for school and i have embeded a song on my index page (Bob Dylans' stuck in the middle with you) with the following code:
<embed src="song.mp3" autostart="true" loop="true" width="180" height="48">
</embed>
and it works fine in IE (shows a small player with play, pause etc) however it deosn't show up in Firefox (it still plays though).
is there anyway i can show the player, like in IE?
cheers!
Coded-Dude
04-14-2006, 06:17 PM
I think that all depends on the end-users file association settings...buts its been a while sinec I did web development. For example, my firefox plays all MPG vids withing the browser(with no controls or viewable player), but opens all WMV's in VLC. But thats hwo I set it up..... Anywho, good luck with that, wbe programming is fun and fullfilling, but very frustrating(when trying to make your site universally viewable)
Garfunkel
04-15-2006, 01:09 AM
hmmm i may try different formats and see how it goes.
YTMND can never play the sound files when I'm using firefox. the only reliable way I've found to make sound play in firefox is to play it through flash.
Viper
04-16-2006, 02:20 PM
They work for me, Zeep.
Garfunkel
04-17-2006, 01:47 AM
damn i might just leave it out, oh well
PS i am asking this cause i got my school to use Firefox!
Gegenki
04-17-2006, 02:58 AM
lol, kinda shot yourself in the foot
Here's what I recommend. Copy the page, and search the net for code taht will work on firefox. Use the copied page for testing.
Then search the net for a php script that will determin the browser and then select the code based on which browser
AntiRealityHero
04-17-2006, 06:32 AM
<embed src="song.mp3" controls="volumelever" type="audio/basic" autostart="true" loop="true" width="100" height="50"></embed>
Try that.
Edit: Actually, I'm not sure if that'll work. Quicktime seems to pick it up either way I put it in.
Which player does it use in IE, Windows Media Player?
HereticPB
04-17-2006, 07:40 AM
You do not need a closing embed tag. I just did this for my site the other day and it would not work what so ever in Firefox.
For example:
<embed src="http://www.kevers.atomicfire.net//files/2/test.m3u" volume=100 AUTOSTART=FALSE CONTROLS=CONSOLE CONTROLLER=TRUE type="audio/mpeg">
Bold tells you what you need
Garfunkel
04-17-2006, 10:03 AM
ok i am trying those suggestions now.....cheers\
EDIT, nope didn't work (still plays but no controls)
Which player does it use in IE, Windows Media Player?
it uses the controls from WMP and plays it in Firefox
WolfmanNCSU
04-17-2006, 07:25 PM
It also depends on the users settings....file association and browser settings.
You do not need a closing embed tag.
This is also true.
vBulletin® v3.6.7, Copyright ©2000-2009, Jelsoft Enterprises Ltd.