为什么获胜't Jplayer CirclePlayer播放mp3,其他Jplayer皮肤都可以

Why won't Jplayer CirclePlayer play mp3, the other Jplayer skins all do?

本文关键字:Jplayer mp3 其他 都可以 播放 CirclePlayer 获胜 为什么      更新时间:2023-09-26

我对编码还很陌生(现在用html5Ccs3和JavaScript玩了大约2个月),我正试图让Jplayer CirclePlayer使用他们的演示文件"demo-05.htm"播放mp3格式。

以下是我根据其他帖子中的信息修改的代码片段,但我仍然无法使CirclePlayer在IE10或当前版本的谷歌Chrome中工作,尽管其他Jplayer皮肤可以播放mp3。

我已经添加了错误警报,但上次尝试时没有收到。

如果有人能帮我弄清楚这一点,我将不胜感激,因为我真的是这个编码领域的新手,而且我经常遇到奇怪的异常情况。

如果我能做到这一点,那么我需要弄清楚如何使用CirclePlayer在同一页面上播放多个mp3文件!

这是我迄今为止一直在使用的代码。所有媒体文件都与htm文件处于同一文件夹级别,JS JS和Skin文件夹与htm文件位于同一级别,因为我在测试播放器时正在使用演示文件夹。

<script type="text/javascript">
//<![CDATA[
$(document).ready(function(){
var myCirclePlayer = new CirclePlayer("#jquery_jplayer_1",
{
mp3: "001.mp3"
m4a: "Miaow-07-Bubble.m4a",
oga: "Miaow-07-Bubble.ogg"
}, {
supplied: "mp3", "m4a", "oga",
cssSelectorAncestor: "#cp_container_1",
swfPath: "js",
wmode: "window",
keyEnabled: true
errorAlerts: true,
warningAlerts: true
});
});
//]]>
</script>

感谢大家为新手提供的一切帮助!

iamjoedy

我按照苏在回答下面的问题时发现,并拿出了我之前添加的所有额外代码行,试图让玩家发挥作用。

jplayer-循环播放-不播放-mp3-file//

$(document).ready(function()
        {
    var myCirclePlayer = new CirclePlayer("#jquery_jplayer_1",
    {
        mp3: "001.mp3"
    }, {
            supplied: "mp3",
            cssSelectorAncestor: "#cp_container_1",
            swfPath: "js",
            wmode: "window"
    });
});
//]]>
</script>

    I removed the m4a: and oga: lines
    I removed the keyEnabled: line
    I removed the errorAlerts: line
    I removed the warningAlerts: line

CirclePlayer同时在IE 10和Chrome中播放音频。