schilly Posted December 17, 2010 Share Posted December 17, 2010 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. Quote Link to comment https://forums.phpfreaks.com/topic/222010-html-5-audio-player/ Share on other sites More sharing options...
denno020 Posted December 26, 2010 Share Posted December 26, 2010 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 Quote Link to comment https://forums.phpfreaks.com/topic/222010-html-5-audio-player/#findComment-1151542 Share on other sites More sharing options...
schilly Posted January 4, 2011 Author Share Posted January 4, 2011 Thanks Denno. Ya that wouldn't be too hard. I got oiplayer working with fallback so giving it a go for now. Quote Link to comment https://forums.phpfreaks.com/topic/222010-html-5-audio-player/#findComment-1154770 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.