One player at a time, please...

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
02Sideman
Posts: 4
Joined: Mon Mar 23, 2009 6:18 pm

One player at a time, please...

Post by 02Sideman » Thu Jun 18, 2009 11:36 pm

Hello all -
I'm new to Revolution and can't find a solution to this problem. I'm building a screen that has a list of 5 MP3's. I'm using 5 player objects, but I want to allow only 1 to play at a time. I also want each song to start at it's beginning. Is there a command that I can use for this? By the way I'm using Revolution Studio.

Any help would be greatly appreciated...

edljr
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 56
Joined: Sun Oct 26, 2008 6:47 am
Contact:

One player at a time, please...

Post by edljr » Mon Jul 13, 2009 5:25 am

02Sideman,

One of the great things about revolution, is that there are so many ways to skin a cat. Have you thought of using a single player and changing the filename of that player to the current song you want to play?

To ensure you are playing from the beginning of the audio file:

Code: Select all

set the currentTime of player "customPlayer" to 0
start player "customePlayer"
Ed

Post Reply