Hi! I make one personal web site with mp3 player. So i list songs in table with about 20-30 players on page.
I want when player1 works and when player2 start playing, than player1 must stop. And that must be for all players (like soundcloud).
And also, how can i make when the song from player1 finish to start player2 automaticlly?
This is the code (for all players is same except the id number):
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
var flashvars = {};
flashvars.repeat="0";
flashvars.playerID="player1";
flashvars.mp3path="melz.mp3";
var params = {};
var attributes = {};
attributes.id = "player1";
swfobject.embedSWF("s5_mp3_player.swf", "player1", "500", "30", "9.0.0", true, flashvars, params, attributes);
</script>
<div id="players_wrapper">
<div id="player1"> <a href="http://www.adobe.com/go/getflashplayer"> <img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.g if" alt="Get Adobe Flash player" /> </a> </div><br/><br/>
</div>
You will have to use LocalConnection if the two swf-players don`t share a common parent-swf. A good example can be found here (Q4).
I reeally didn't understand a lot from java :/
I´m not talking about java, but of Actionscript 3. If you have no programming experience and can`t understand the solution I linked to in my first document, this task will be too difficult for you, trust me. It`s not worth the effort to learn all that for the only reason of
I make one personal web site
I also can`t imagine that anyone has already made an off-the-shelf- solution to control 20-30 mp3 players in the same application. The requirements are a bit......exotic. Sorry ![]()
Its like soundcloud.com as i said. You can see the web, there has a lot of players in one page too
And they are linked (like i want it). And really i understand php, can create whole web systems. Undrestand javascript, but only for editing something finished... And i will be very appreciated if someone can help me :/
To achieve sth like this it would probably be the easiest way to adjust an example like this to your needs.
It shows how a swf sends a message to the Browsers javascript.
North America
Europe, Middle East and Africa
Asia Pacific