Jump to content

Recommended Posts

Anyone know a good one? Preferably jquery compatible. I need HTML5 playback for mp3 (Safari/Chrome) and Flash fallback for everything else.

 

I'm trying OIPlayer (http://www.openbeelden.nl/oiplayer/) and can't seem to figure out the fallback and their documentation is brutal. I looked at jPlayer (http://www.happyworm.com/jquery/jplayer/) but it was pretty clunky and not very module for what I needed.

Link to comment
https://forums.phpfreaks.com/topic/222010-html-5-audio-player/
Share on other sites

  • 2 weeks later...

Why don't you just use a script to check the browser that is being used to load your page in an if/else statement, and then have the appropriate code for each.

 

watch this video on info as to how you can check which browser is being used. It should be quite easy, as Chrome and Safari both have 'Safari' in it's HTTP_USER_AGENT information, so check for that in your if condition.

That way you can have any HTML5 audio player you want, and have the code for it in the if, otherwise you will show the flash audio player that is in the else part.

 

Hope that helps

 

Denno

 

 

Link to comment
https://forums.phpfreaks.com/topic/222010-html-5-audio-player/#findComment-1151542
Share on other sites

  • 2 weeks later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.