[英]JPlayer Does Not Work On Firefox Android But All Other Browsers
I've been trying to figure out why my jplayer configuration is playing on all browsers, except android for firefox. 我一直在试图弄清楚为什么我的jplayer配置在所有浏览器上播放,除了Firefox的android。 I followed the development guide for the last few days, and im still struggling to figure this out.
在过去的几天里,我一直遵循开发指南,而即时消息仍然难以解决。 My dev site is http://dev.beatautomate.com/appdevel/?uid=titus I declared a few properties so flash will come in as a fallback back for uncompatible browsers... But Im not sure what im doing wrong.. A snippet of my code is below, and again my dev site is http://dev.beatautomate.com/appdevel/?uid=titus any ideas, or suggestions?
我的开发站点是http://dev.beatautomate.com/appdevel/?uid=titus,我声明了一些属性,因此Flash将作为不兼容浏览器的后备设备而来...但是我不确定我在做什么错。下面是我的代码段,我的开发网站还是http://dev.beatautomate.com/appdevel/?uid=titus,您有什么想法或建议吗? thanks so much!!
非常感谢!!
// json_data is a json object that has a few mp3s..
var myPlaylist = new jPlayerPlaylist({
jPlayer: "#jquery_jplayer_N",
cssSelectorAncestor: "#jp_container_N"
},json_data, {
playlistOptions: {
enableRemoveControls: true
},
swfPath: "http://www.jplayer.org/latest/js/Jplayer.swf",
supplied: "mp3",
smoothPlayBar: true,
keyEnabled: true,
solution:"flash,html"
});
It looks like jPlayer doesn't correctly detect that Firefox for Android supports MP3 playback. 看来jPlayer无法正确检测到Firefox for Android支持MP3播放。
Modifying all occurrences of the string 'audio/mpeg; 修改所有出现的字符串'audio / mpeg; codecs="mp3"' to 'audio/mpeg' in the jPlayer library makes playback work correctly in Firefox for Android.
jPlayer库中的codecs =“ mp3”'到'audio / mpeg'使播放在Android版Firefox中可以正常工作。 I'm not sure whether this creates problems for detection in any other browsers, however.
我不确定这是否会在其他任何浏览器中检测到问题。
Hopefully the jPlayer team can fix this detection in the next release. 希望jPlayer团队可以在下一个版本中修复此检测问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.