Movie.Open

From Xojo Documentation

Shared Method

Movie.Open() As Movie

New in 2019r2

Opens the FolderItem to be read as a movie and returns its movie as a Movie object.

Notes

Nil is returned if the movie can’t be read.

Example

This example displays an open-file dialog box that lets the user select a QuickTime movie. The QuickTime movie is then copied into the Movie property of a MoviePlayer control.

Var f As FolderItem
f = FolderItem.ShowOpenFileDialog("video/quicktime")
If f <> Nil Then
MoviePlayer1.Movie = Movie.Open(f)
End If