MoviePlayer.Play method

From Xojo Documentation

Method

MoviePlayer.Play()

Supported for all project types and targets.

Plays the current movie.

Example

The following example opens the movie that the user chose and plays it.

Var f As FolderItem

f = FolderItem.ShowOpenFileDialog(FileTypes1.VideoMp4)
If f <> Nil Then
MoviePlayer1.RepeatInReverse = False
MoviePlayer1.Movie = Movie.Open(f)
MoviePlayer1.Play
End If