Skip to main content

playStarted

Type​

message

Summary​

Sent to a player when it starts playing.

Syntax​

playStarted

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

Examples​

on playStarted
show the target
show button "Stop Playing"
end playStarted

command: play

message: playStopped, playPaused, currentTimeChanged

property: paused, currentTime, endTime

Compatibility and Support​

Introduced

LiveCode 1.0

OS

mac

windows

linux

Platforms

desktop

server

Thank you for your feedback!

Was this page helpful?