javascript - JQuery Player - Doesn't work on Chrome -
i using music player written in jquery converted radio player.
the problem doesn't work on google chrome
in index.php file, (written in html5 also) have created object these features
$(document).ready(function(){ var mycircleplayer = new circleplayer("#jquery_jplayer_1", { //m4a: "http://46.20.4.50:8030/", //safari & fenomen m4a: "http://stream-uk1.radioparadise.com:8034", oga: "http://stream-sd.radioparadise.com:9000/rp_192m.ogg" //firefox //m4a :"muzikler/0.m4a", //oga :"muzikler/0.ogg" }, { cssselectorancestor: "#cp_container_1", canplay: function() { $("#jquery_jplayer_1").jplayer("play"); } }); });
i wondering if chrome doesn't support .ogg or .m4a don't think since ve tried on player.
in .js file ve adapted jquery 1.4.4 since 1.3.2 doesnt detect chrome webkit.
$.jplayer.uabrowser = function( useragent ) { var ua = useragent.tolowercase(); // useragent regexp var rwebkit = /(webkit)[ \/]([\w.]+)/; var ropera = /(opera)(?:.*version)?[ \/]([\w.]+)/; var rmsie = /(msie) ([\w.]+)/; var rmozilla = /(mozilla)(?:.*? rv:([\w.]+))?/; var match = rwebkit.exec( ua ) || ropera.exec( ua ) || rmsie.exec( ua ) || ua.indexof("compatible") < 0 && rmozilla.exec( ua ) || []; return { browser: match[1] || "", version: match[2] || "0" }; };
what part missing fix issue?
you can take @ full js file : http://pastebin.com/hvkgxkcy
Comments
Post a Comment