0

我更新了一个主题,以便所有页面都通过 ajax 加载。在其中一个页面上,我使用 jplayer Circle 播放器播放 mp3,该播放器在 firefox 和 safari 中运行良好,但在 Chrome 中却不行。

这是初始化脚本

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 中工作?

4

1 回答 1

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
});

});
于 2014-03-01T07:41:26.927 回答