From Xojo Documentation

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

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

New in 2021r3

Supported for all project types and targets.

If True, the movie will start playing automatically when it is assigned to the Movie property of the control. The default is False.

Sample Code

This example sets AutoPlay and then opens a movie.

Var myMovieFile As FolderItem

myMovieFile = FolderItem.ShowOpenFileDialog(FileTypes1.VideoMp4)
If myMovieFile <> Nil Then
MoviePlayer1.AutoPlay = True
MoviePlayer1.Movie = movie.Open(myMovieFile)
End If