MoviePlayer.Looping

From Xojo Documentation

Property (As Boolean )
aMoviePlayer.Looping = newBooleanValue
or
BooleanValue = aMoviePlayer.Looping

Supported for all project types and targets.

If True, it replays the movie automatically when it reaches the end. The default is True.

Example

This example turns Looping off.

Dim f As FolderItem

f = GetOpenFolderItem(FileTypes1.VideoMp4)
If f <> Nil Then
MoviePlayer1.AutoPlay = True
MoviePlayer1.Looping = False
MoviePlayer1.Movie = f.OpenAsMovie
End If