From Xojo Documentation

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

Property (As Boolean )
aDesktopMoviePlayer.AutoRepeat = newBooleanValue
BooleanValue = aDesktopMoviePlayer.AutoRepeat

New in 2021r3

Supported for all project types and targets.

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


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