我在我的 webso “ http://bajao.biscoot.com/ ”中使用 jwplayer,但它不适用于 Firefox,请帮助我
我的 Javascript 代码是:
$(document).ready(function(){
$(".play_song").removeClass("buffering").removeClass("pause_song").addClass("play_song");
jwplayer().onReady(function(){
volumeControl(jwplayer().getVolume());
vol = jwplayer().getVolume();
if(jwplayer().getVolume() == 0){
$(".volume_button").addClass("mute");
}
playerReady = 1;
});
jwplayer().onBufferChange(function(){
//playerReady = 1;
});
jwplayer().onPlay(function(){
$(".play_song").removeClass("buffering").addClass("pause_song");
});
jwplayer().onPause(function(){
$(".play_song").removeClass("buffering").removeClass("pause_song").addClass("play_song");
});
jwplayer().onBuffer(function(){
$(".play_song").addClass("buffering");
});
jwplayer().onIdle(function(){
$(".play_song").removeClass("buffering");
});
jwplayer().onPlaylistComplete(function(){
repeatNorepeatList();
});
jwplayer().onTime(function(event){
if(plyFlg == 1){
$(".play_song").removeClass("buffering").removeClass("pause_song").addClass("play_song");
jwplayer().pause();
plyFlgFun();
}else if(parseInt(vldtFlg) < parseInt(cdate) || parseInt(vldtFlg) == 1){
$(".play_song").removeClass("buffering").removeClass("pause_song").addClass("play_song");
jwplayer().pause();
vldtFlgFun("stream");
}else{
if(parseInt(onloadPlay) == 0){
if(parseInt($(".scrub > div").height()) == 0){
mis(cIdR, dataR, 1);
}else{
mis(cIdR, dataR, 0);
}
onloadPlay = 1;
}
}
setmediaTime(event.position,event.duration);
});
jwplayer().onBeforePlay(function(){
//setMediaData();
});
jwplayer().onError(function(e){
//alert(e.message);
});
});