FolderItem.OpenAsMovie

From Xojo Documentation

Method

FolderItem.OpenAsMovie() As Movie

Supported for all project types and targets.

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.

Dim f As FolderItem
f = GetOpenFolderItem("video/quicktime")
If f <> Nil Then
MoviePlayer1.Movie = f.OpenAsMovie
End If