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
Waits for file to be loaded.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
AVAsset | 8.0 | ✅ Yes | ❌ No | ❌ No | ✅ Yes, on macOS | ✅ Yes |
Parameter | Description | Example |
---|---|---|
Asset | The reference number of the asset. Please use AVAsset.OpenContainer, AVAsset.OpenFile or AVAsset.OpenURL function to get asset reference. | $asset |
Returns status or error.
Load asset:
Set Variable [ $path ; Value: "/Users/cs/Movies/video.mov" ]
Set Variable [ $asset ; Value: MBS("AVAsset.OpenFile"; $path) ]
# now wait a few milliseconds to load
Set Variable [ $r1 ; Value: MBS( "AVAsset.WaitForLoaded"; $asset ) ]
# check status
Set Variable [ $r2 ; Value: MBS( "AVAsset.Loaded"; $asset ) ]
Show Custom Dialog [ "Loaded" ; $r1 & ¶ & $r2 ]
Set Variable [ $r3 ; Value: MBS( "AVAsset.Release"; $asset ) ]
This function checks for a license.
Created 9th January 2018, last changed 9th January 2018