Movie
From Xojo Documentation
Class (inherits from Object)
A reference to a movie. Movie class objects have no events.
Properties | |||||
|
Shared Methods | ||
|
Notes
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.
Examples
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("Logo.mov")
m = Movie.Open(f)
MoviePlayer1.Border = True
MoviePlayer1.Movie = m
MoviePlayer1.HasController = True
TextField2.Value = m.MovieHeight.ToString
TextField3.Value = m.MovieWidth.ToString
Var m As Movie
f = FolderItem.ShowOpenFileDialog("Logo.mov")
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.