playerFinished

Typemessage
DictionaryLCS
LibraryLiveCode Script
Syntax
playerFinished
Summary

Sent when the content has finished playing.

Introduced4.6
OSios, android
Platformsmobile
Example
on playerFinished
    answer "Your movie has finished playing." with "Okay"
end playerFinished
RelatedFunction: mobileControlGet
Message: playerMovieChanged, playerError, playerLeaveFullscreen, playerStopped, playerProgressChanged, playerPropertyAvailable, playerEnterFullscreen
Description

Handle the playerFinished message when the content of the movie player has finished playing.

You can test the playbackState of the player by using the mobileControlGet function.