FolderItem.OpenResourceMovie

From Xojo Documentation

Revision as of 16:58, 6 February 2019 by PLefebvre (talk | contribs)
Method


FolderItem.OpenResourceMovie(ResID as Integer) As Movie

Supported for all project types and targets.

Opens the movie specified by ResID as a movie (Macintosh only).

Notes

Used only if the movie is stored as a MooV resource. Use OpenAsMovie for QT 4.0 (and greater) files.

Example

The following code accesses the resource movie numbered 1. The video/mp4 file type has been added to the project by the File Types Editor.

Dim f As FolderItem
Dim m As Movie
f = GetOpenFolderItem("video/mp4")
If f <> Nil Then
m = f.OpenResourceMovie(1)
Else
MsgBox("Open failed.")
End If