Playing MP3

Michael Kann mikekann at yahoo.com
Sun May 27 16:37:57 EDT 2012


My first post got all bunched up for some reason. Meanwhile, found another complication.

If you

set the currentTime of player 1 to zero 

does that mean the start of the selection, or the start of the file?  

This should be an easy one. It just doesn't seem to work here on Vista -- 4.0.0 build 950.
I want to play a section of an mp3.  This is my script:


on
 mouseUp

set the filename of player 1 to "a.mp3"

set the playSelection of 
player 1 to true

set the startTime of player 1 to 53000s

et the stopTime 
of player 1 to 54000

play player 1

end mouseUp

The sound starts as expected at 53000, but doesn't stop at 54000. How do I get the sound to stop? 


Thanks in advance,
Mike


More information about the use-livecode mailing list