Hey Federico, it's me again to bother you once again D:
This player gets better with every version, its a very promising project, congratulations on your work.
Well we're updating our website and we decided to use the last version of ffmp3, we installed it and works fine except for one little annoying thing, when we open the website we get the "FFMP3: intro -" and the url of the file, and next we get "FFMP3: intro - 0" and sometimes we get the first one again.
We are using a mp3 stream, fallback and introurl, js enabled and tracking too. And when we don't use introurl we still get the second message.
As you can see this might be a problem for the users of our site, so we'd really appreciate any help you could give us.
You can also remove the cases you're not using (as volume, source, fallback, play, stop, ioerror, buffering, etc) and leave your function like this:
<scripttype="text/javascript">
function ffmp3Callback(event,param){
switch(event){
case "metadata-json":
document.getElementById('ffmp3metadatajson').innerHTML=param;
eval("var metadata="+param+";");
// here you have the metadata object to play with.
break;
case "metadata":
document.getElementById('ffmp3parsedmetadata').innerHTML=param;
break;
default:
break;
}
}
</script>
Best regards,
Ezequiel
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hey Federico, it's me again to bother you once again D:
This player gets better with every version, its a very promising project, congratulations on your work.
Well we're updating our website and we decided to use the last version of ffmp3, we installed it and works fine except for one little annoying thing, when we open the website we get the "FFMP3: intro -" and the url of the file, and next we get "FFMP3: intro - 0" and sometimes we get the first one again.
We are using a mp3 stream, fallback and introurl, js enabled and tracking too. And when we don't use introurl we still get the second message.
As you can see this might be a problem for the users of our site, so we'd really appreciate any help you could give us.
You can check our problem here http://radio3hp.com/new
Regards
Albert
Hi Albert,
the problem is that you're using an example ffmp3Callback function, that calls alert on some js events.
The function in your HTML is:
First, you need to delete the alert call:
You can also remove the cases you're not using (as volume, source, fallback, play, stop, ioerror, buffering, etc) and leave your function like this:
Best regards,
Ezequiel
Thanks Ezequiel
I'll Try and let you know what happens.
Regards
Albert
Thanks Ezequiel, the solution you provided it's great. Works just fine.
You guys should start a wiki page with how to's and useful info like this for the newbies like us.
Regards
Yes, we're planning to have a Wiki soon. It'll be great for beginners to find useful information.
See you soon, Albert!
Greetings.