DesktopMoviePlayer.Play

From Xojo Documentation

Method

DesktopMoviePlayer.Play()

New in 2021r3

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