From Xojo Documentation

Class (inherits from Object)

A reference to a movie. Movie class objects have no events.

BaseMovieHeight fa-lock-32.png Handle fa-lock-32.png MovieWidth fa-lock-32.png
BaseMovieWidth fa-lock-32.png MovieHeight fa-lock-32.png
Shared Methods
Open OpenURL


Movie objects can be accessed via the Movie property of a MoviePlayer control or when calling the Open method of a Movie object.

Windows and Linux Support

Although you can create a Movie object on Windows, its properties are only accurate if QuickTime is installed. On Linux, the Movie object properties are never accurate.


This example opens a movie on disk, assigns it to the movie property of a MoviePlayer object, and displays its height and width in TextFields.

Var f As FolderItem
Var m As Movie
f = FolderItem.ShowOpenFileDialog("")
m = Movie.Open(f)
MoviePlayer1.Border = True
MoviePlayer1.Movie = m
MoviePlayer1.HasController = True
TextField2.Value = m.MovieHeight.ToString
TextField3.Value = m.MovieWidth.ToString

See Also

OpenURLMovie function; MoviePlayer control.