我更新了一个主题,以便通过ajax加载所有页面。在其中一个页面上我使用jplayer Circle播放器播放mp3播放器,它在firefox和safari中运行良好但在Chrome中没有。
这是init脚本
jQuery(document).ready(function($){
var myCirclePlayer = new CirclePlayer(".jquery_jplayer_'.$counter.'",
{
mp3: "'.$track->album_track_mp3_url.'",
}, {
cssSelectorAncestor: ".cp_container_'.$counter.'",
swfPath: "'.get_template_directory_uri().'/scripts/frontend/Jplayer.swf",
wmode: "window",
supplied: "mp3"
});
});
为什么它无法在Chrome中运行?
答案 0 :(得分:0)
jQuery(document).ready(function($){
var myCirclePlayer = new CirclePlayer(".jquery_jplayer_'.$counter.'",
{
mp3: "'.$track->album_track_mp3_url.'",
},
{
cssSelectorAncestor: ".cp_container_'.$counter.'",
swfPath: "'.get_template_directory_uri().'/scripts/frontend/Jplayer.swf",
wmode: "window",
supplied: "mp3",
solution: "flash, html"// after adding a line of code it will work on chrome
});
});