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: 12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4   13.5    Statistic    FMM    Blog  

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

💬 Ask a question or report a problem