MoviePlayer.Movie

From Xojo Documentation

Property (As Movie )
aMoviePlayer.Movie = newMovieValue
or
MovieValue = aMoviePlayer.Movie

Supported for all project types and targets.

The movie that will be played.

Example

This example displays a movie in a MoviePlayer and plays it.

Var f As FolderItem

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