...

View Full Version : Resolved Html 5 Audio with flash fallback not working



andynov123
07-05-2011, 06:20 AM
I added some javascript and and tried to set up flash as a fallback for firefox and opera since they dont support mp3 files. The audio player plays in chrome and IE but not in Firefox. Why isn't the flash fallback working. Does Flash not play mp3 or is it have something to do with the .caf

Heres the site

www.college-ebook.com

shankar.adodis
07-05-2011, 08:15 AM
Hello ,

i searched for you and i have learned that firefox does not support mp3 audio .

better you can convert to flv format. here is the link where i found it

http://support.mozilla.com/en-US/questions/758978

andynov123
07-05-2011, 04:56 PM
I've seen that page before. Here's my issue. I don't want people converting their files to ogg just so they can hear their audio in firefox
Because that doesn't leave much anything for chrome or ie that's why I want a flash fallback. I'm not going to ask people to convert their files to ogg. Couldn't I use a third-party media player to play mp3 on firefox? Also what about the flash fallback? Wont the flash fallback allow me to play mp3 in firefox? If so what's wrong with my code?

Apostropartheid
07-05-2011, 05:10 PM
There doesn't seem to be a functional Flash player at all. It should look much like this:


<audio controls>
<source src="example.mp3" type="audio/mpeg">
<object height="48" width="320" type="application/x-shockwave-flash" data="flashplayer.swf">
<param name="movie" value="example.mp3">
</object>
</audio>


At its bare minimum. The exact code will vary depending on the needs of the Flash player.

Could you not convert audio to OGG on your server or is space a real concern?

andynov123
07-05-2011, 05:28 PM
I don't want to because every audio file will have a duplicate. Doesn't seem very efficient to me. What about a third party media player? Can't they play mp3 on firefox? If I don't have choice then how would my server convert mp3 to ogg automatically without anyone converting files manually for firefox?

is this
<audio controls>
<source src="example.mp3" type="audio/mpeg">
<object height="48" width="320" type="application/x-shockwave-flash" data="flashplayer.swf">
<param name="movie" value="example.mp3">
</object>
</audio>
supposed to support firefox for mp3? If so I added it but now nothing plays in firefox.
I updated site so you can see www.college-ebook.com

Apostropartheid
07-05-2011, 05:53 PM
I don't want to because every audio file will have a duplicate. Doesn't seem very efficient to me. What about a third party media player? Can't they play mp3 on firefox? If I don't have choice then how would my server convert mp3 to ogg automatically without anyone converting files manually for firefox?

I was just asking. If space wasn't really a concern then it wouldn't matter.


is this
<audio controls>
<source src="example.mp3" type="audio/mpeg">
<object height="48" width="320" type="application/x-shockwave-flash" data="flashplayer.swf">
<param name="movie" value="example.mp3">
</object>
</audio>
supposed to support firefox for mp3? If so I added it but now nothing plays.
I updated site so you can see www.college-ebook.com

It's not magic: you need to find your own Flash player and modify the code to make it work with that specific Flash player yourself.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum