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

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
kebo
Forum Newbie
Posts: 9
Joined: Mon Aug 28, 2006 9:16 am

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

Post 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
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

Not in PHP.
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post 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.
User avatar
wtf
Forum Contributor
Posts: 331
Joined: Thu Nov 03, 2005 5:27 pm

Post by wtf »

see Flash's Sound Object
Post Reply