Syntax:
on media ready in {player} {block} on media end in {player} {block} on stop {player} {block} on mouse click in {player} {block}
Keyword handler:
net.eclecity.linguist.media.keyword.MediaKOn.class
Runtime handler(s):
net.eclecity.linguist.media.handler.MediaHOnEndOfMedia.class net.eclecity.linguist.media.handler.MediaHOnStopPlayer.class net.eclecity.linguist.media.handler.MediaHOnMouseClick.class
Function: Handles events generated by a media player. When the event occurs the specified instruction (block) is executed. The events are as follows:
media ready is generated when the media file is ready to be played, following load.
media end is generated when the player reaches the end of the media file.
stop is generated when the player reaches the position specified in the play command, but not when the end of media is reached or play is aborted with a stop command.
mouse click is generated when the user clicks the left mouse button in the video area of the player. Not applicable to audio players.
Example(s):
on end of media in MoviePlayer exit on mouse click in Movie go to Abort