Hello there,
I'm trying to catch the errorCode but i dont know how to show in alert() the code, i tried to show a random message such : alert('hello'); and nothing appears! in Firebug logged "Unable to load audio file" i think it is errorCode 200 or 201. but i'm not able to handle this errorCode, kind anoying me...
PS: I did a massive search at the Forum and Google, and i didn't find any clue :-(
Thanks in advance.
Here is the code:
$f("musicplayer", "flowplayer/flowplayer-3.1.1.swf", {
plugins: {
controls: {
fullscreen: false,
height:30
}
},
clip: {
url: v_musica,
autoPlay: true
},
onLoad: function(){
this.unmute();
this.setVolume($("#volume_atual").val());
},
onFinish: function (){
$("#musicplayer").html('');
$("#tocando").val('0');
move();
verifica_playlist(); } ,
onError: function() {
alert("Hello");
}
});
I'm trying to catch the errorCode but i dont know how to show in alert() the code, i tried to show a random message such : alert('hello'); and nothing appears! in Firebug logged "Unable to load audio file" i think it is errorCode 200 or 201. but i'm not able to handle this errorCode, kind anoying me...
PS: I did a massive search at the Forum and Google, and i didn't find any clue :-(
Thanks in advance.
Here is the code:
$f("musicplayer", "flowplayer/flowplayer-3.1.1.swf", {
plugins: {
controls: {
fullscreen: false,
height:30
}
},
clip: {
url: v_musica,
autoPlay: true
},
onLoad: function(){
this.unmute();
this.setVolume($("#volume_atual").val());
},
onFinish: function (){
$("#musicplayer").html('');
$("#tocando").val('0');
move();
verifica_playlist(); } ,
onError: function() {
alert("Hello");
}
});