MoviePlayer.AutoRepeat

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

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

New in 2019r2

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 AutoRepeat off.

Var f As FolderItem

f = FolderItem.ShowOpenFileDialog(FileTypes1.VideoMp4)
If f <> Nil Then
MoviePlayer1.AutoPlay = True
MoviePlayer1.AutoRepeat = False
MoviePlayer1.Movie = Movie.Open(f)
End If