Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 10.1   10.2   10.3   10.4   10.5   11.0   11.1   11.2   11.3   11.4    Statistic    FMM    Blog  


Opens a movie from a container.

Component Version macOS Windows Linux Server iOS SDK
AVAsset 5.2 ✅ Yes ❌ No ❌ No ✅ Yes, on macOS ✅ Yes
MBS( "AVAsset.OpenContainer"; Container )   More


Parameter Description Example
Container The container with the movie file. MyTable::MovieContainer


Returns asset reference number or error.


Opens a movie from a container.
Should work for external and internal containers.
Please allow a second to load video in background asynchronously.
Available in OS X v10.7 and later.

Please call AVAsset.Release later to free object from memory.


Open movie from container:

MBS( "AVAsset.OpenContainer"; MyTable::MyContainer )

Close it later

MBS( "AVAsset.Release"; $asset )

See also

Release notes

Example Databases

Blog Entries

Created 19th June 2015, last changed 30th May 2017

AVAsset.NaturalWidth - AVAsset.OpenFile

Feedback: Report problem or ask question.

MBS Xojo Chart Plugins

Start Chat