mp3 files and the player object

Klaus Major k_major at os.surf2000.de
Wed Feb 19 17:02:00 EST 2003


Hi Chris,

> --- Jim Lambert <jiml at netrin.com> wrote:
>> <    wait (the duration of player "myPlayer" / the
>> timeScale of player "myPlayer") seconds>
> Thanks for the info.  The user does have to be able to
> stop playback.  So I definitely need to consider that.
>  If the user does stop playback, everything will
> basically reset itself and start from the beginning
> with the first sound file and first sentence.  I will
> take a closer look at Klaus' example.

Drop a line if you need further info, assistance or explanations.

>> This works and that's most important, but...
>> Everything, including user interaction, suspends
>> while the sound is playing,
>> thus preventing the user from stopping the sound in
>> midplay. If these sounds
>> are brief you can probably 'get away' with that, but
>> it's friendlier to
>> leave control to the user. Klaus' SEND example
>> allows for interruption
>> during and between sound plays.
>>
>> I wonder why playstopped isn't 100% reliable.

You can also try this:

...
wait .... with mesages ### !!! :-)
...

Will only "block" this script and no other handlers...
See "wait" in the docs...

>> Jim Lambert

Hope that helps.

Regards

Klaus Major
k_major at os.surf2000.de




More information about the use-livecode mailing list