playStarted

Typemessage
DictionaryLCS
LibraryLiveCode Script
Syntax
playStarted
Associationsplayer
Summary

Sent to a player when it starts playing.

Introduced1.0
OSmac, windows, linux
Platformsdesktop, server
Example
on playStarted
  show the target
  show button "Stop Playing"
end playStarted
RelatedCommand: play
Message: playStopped, playPaused, currentTimeChanged
Property: paused, currentTime, endTime
Description

Handle the playStarted message if you want to perform a task when a movie or sound starts playing.

The playStarted message is sent when the user clicks the play button, or when a play start command executes. If the user pauses the movie or sound, the playPaused message is sent. If the user stops the movie or sound, the playStopped message is sent.

When an audio clip or video clip is playing, a temporary player is created for it. When the clip starts playing, the playStarted message is sent to it

Tagsmultimedia