Page 1 of 1

using <embed>....knowing when the sound ends

Posted: Wed Sep 13, 2006 10:42 am
by kebo
I'm using this code to play sound on my page

Code: Select all

echo "<embed src='" . $mySound . "' width='300' height='15' autostart='true' > </embed>";
and I would like to know when the sound file is done playing. Is there any way to do this?
thanks
kevin

Posted: Wed Sep 13, 2006 2:11 pm
by feyd
Not in PHP.

Posted: Wed Sep 13, 2006 2:13 pm
by Luke
no way to do it with php, but you could use some other technology to check how long the clip is, and then store that in a database along with the sound file name... then you could just check that.

Posted: Wed Sep 13, 2006 2:24 pm
by wtf
see Flash's Sound Object