我正在使用flowplayer版本3.2.5来传输视频,我正在使用此代码
flowplayer(divname, "flowplayer-3.2.5.swf", {
clip:{
onFinish:function() {
s= parseInt(s) + parseInt(1);
document.getElementById('loopinc'+val).value = s;
var stpnote = document.getElementById('stopnote'+val).value;
if(s == 3 && stpnote == "ON" && user != "M") {
//alert(s + " $ "+ val);
document.getElementById('loopinc'+val).value = 1;
visibleme(val);
} else if(s == 3 && stpnote != "ON") {
stopplayer(val);
}
},
onBeforeFinish: function () {
// hide replay button
this.getPlugin("play").css({opacity: 0});
}
},
playlist: [
'Start.flv',
{
url: 'buffer.gif',duration: 5,
},
newfilename
],
});
此代码在Firefox中运行良好,但在IE中运行不正常。如果我删除播放列表剪辑
playlist: [
'Start.flv',
{
url: 'buffer.gif',duration: 5,
},
newfilename
],
然后在IE中运行代码,然后它的工作正常。我做错了什么?
答案 0 :(得分:1)
尝试删除最后一个逗号
playlist: [
'Start.flv',
{
url: 'buffer.gif',duration: 5,
},
newfilename
], <----- REMOVE THIS COMMA