Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

AVAsset.OpenContainer

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

Parameters

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

Result

Returns asset reference number or error.

Description

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.

You can use AVExport.ExportSession to export to a new file. With AVExport.SetTimeRange you can only export a clip and with AVExport.ExportSessionMerge you can merge multiple videos to one.

Examples

Open movie from container:

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

Close it later

MBS( "AVAsset.Release"; $asset )

See also

Release notes

Example Databases

Blog Entries

This function checks for a license.

Created 19th June 2015, last changed 2nd February 2022


AVAsset.NaturalWidth - AVAsset.OpenFile