From Xojo Documentation

Revision as of 19:47, 24 July 2019 by Gperlman (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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

New in 2005r1

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