I’m not sure whether the info I need is an HTML property:value pair or a js function, so I’m posting this in both forums. When I get an answer in one I’ll note that fact in the other:
I’m using the following to play mp3 tracks the user clicks on:
<script language=”javascript”>
var title = …
document.getElementById(“forEmbed”).innerHTML=”<embed src='”+title+”‘ autostart=true loop=false volume=100 hidden=true>”;
stopPlay=window.setTimeout( “playNext()”, duration );
</script>
and it works fine.
But to use it I have to know the duration of the track. (And if the first track takes too long to load then it’s cut short.)
I’d like to revise the player to play any mp3 track, given the path/filename, without my adding further info.
Is there some way to EITHER read a value from the mp3 file OR (even better) to determine when it has stopped playing?
TIA