Using Player? - Solved

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
DR White
Posts: 718
Joined: Fri Aug 23, 2013 12:29 pm

Using Player? - Solved

Post by DR White » Fri Nov 01, 2013 11:23 am

I want to use a player to play various wav files.

I have tried the following code, but does not seem to work.

start playing player AudioPlayer1 filename "C:\Backups\cheering.wav"

Could someone give an example code?

Thanks,

David
Last edited by DR White on Fri Nov 01, 2013 3:18 pm, edited 1 time in total.

Klaus
Posts: 14199
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Using Player?

Post by Klaus » Fri Nov 01, 2013 1:07 pm

Why not use the examples shown in the dictionary for "player"? They do in fact work 8)
...
## Object names in QUOTES!
## And LC uses the UNIX SLASH / as a pathdelimiter internally!
set the filename of player "AudioPlayer1" to "C:/Backups/cheering.wav"
start player "AudioPlayer1"
...

DR White
Posts: 718
Joined: Fri Aug 23, 2013 12:29 pm

Re: Using Player?

Post by DR White » Fri Nov 01, 2013 3:17 pm

Klaus,

That works Great! :D

Thanks so much,

David

Post Reply