Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    Regular Coder
    Join Date
    Oct 2010
    Posts
    262
    Thanks
    8
    Thanked 1 Time in 1 Post

    Html 5 Audio with flash fallback not working

    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
    Last edited by andynov123; 07-06-2011 at 01:27 AM.

  • #2
    New Coder
    Join Date
    Feb 2011
    Posts
    41
    Thanks
    0
    Thanked 4 Times in 4 Posts
    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

  • #3
    Regular Coder
    Join Date
    Oct 2010
    Posts
    262
    Thanks
    8
    Thanked 1 Time in 1 Post
    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?

  • #4
    The Apostate Apostropartheid's Avatar
    Join Date
    Oct 2007
    Posts
    3,215
    Thanks
    16
    Thanked 265 Times in 263 Posts
    There doesn't seem to be a functional Flash player at all. It should look much like this:
    Code:
    <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?

  • #5
    Regular Coder
    Join Date
    Oct 2010
    Posts
    262
    Thanks
    8
    Thanked 1 Time in 1 Post
    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
    Last edited by andynov123; 07-05-2011 at 04:56 PM.

  • #6
    The Apostate Apostropartheid's Avatar
    Join Date
    Oct 2007
    Posts
    3,215
    Thanks
    16
    Thanked 265 Times in 263 Posts
    Quote Originally Posted by andynov123 View Post
    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.

  • Users who have thanked Apostropartheid for this post:

    andynov123 (07-06-2011)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •