How do you limit a page with multiple flash mp3 players to play one at a time?

Posted by Andrew.S on Stack Overflow See other posts from Stack Overflow or by Andrew.S
Published on 2010-05-29T22:27:10Z Indexed on 2010/05/29 22:32 UTC
Read the original article Hit count: 281

Filed under:
|
|
|

I am working with the open source flash player at http://flash-mp3-player.net/ and I am trying to figure out how to limit one sound file at a time. I know this has been done on a number of sites but I am unsure how to approach it.

Scenario: A page has five different instances of the flash player. The user is litening to one song but clicks on another to listen to it.

Goal: The first audio file automatically stops while the second starts playing instead of both playing at the same time.

Do I need to have some sort of javascript handler than interacts with the swf or something?

© Stack Overflow or respective owner

Related posts about flash

Related posts about mp3