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


Opens a movie from URL.

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


Parameter Description Example
URL The URL of the movie to open. "http://example.test/mysound.mp3"


Returns asset reference number or error.


Opens a movie from URL.
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.


Opens movie file with URL:

MBS( "AVAsset.OpenURL"; "file:/Users/cs/Desktop/test.mp4" )

Close it later

MBS( "AVAsset.Release"; $asset )

See also

This function checks for a license.

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

AVAsset.OpenFile - AVAsset.PreferredRate