我有一个最奇怪的问题,我可以成功地播放1个shoutcast电台,而不能使用其他一些使用jplayer。这很奇怪,因为shoutcast服务器的信息暗示了类似的配置:
http://198.27.79.224:9770/
http://108.61.73.119:8128/
我还必须注意,jplayer的flash版本同时播放,但html版本只播放第一个。
Jplayer js看起来像这样
<script type="text/javascript">
//<![CDATA[
$(document).ready(function(){
new jPlayerPlaylist({
jPlayer: "#jquery_jplayer_1",
cssSelectorAncestor: "#jp_container_1"
}, [
{
title:"#1 Stream",
mp3:"http://108.61.73.119:8128/;stream/1"
},
{
title:"#2 Stream",
mp3:"http://108.61.73.118:8128/;stream/1"
},
{
title:"#3 Stream",
mp3:"http://108.61.73.117:8128/;stream/1"
},
{
title:"#4 Stream",
mp3:"http://198.27.79.224:9770/;stream/1"
},
], {
swfPath: "jplayer",
supplied: "mp3",
wmode: "window",
preload: "none",
//solution: "flash, html",
smoothPlayBar: true,
keyEnabled: true
});
$("#jplayer_inspector_1").jPlayerInspector({jPlayer:$("#jquery_jplayer_1")});
});
//]]>
</script>
有什么想法吗?
答案 0 :(得分:0)
似乎flash版本播放所有的流,但html5版本只选择了几个。我从来没有找到问题的根源。