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

AVAsset.OpenURL

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

Parameters

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

Result

Returns asset reference number or error.

Description

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.

Examples

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