Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.2   6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4   7.5    Statistic  

AVAsset.Loaded

Queries load status of asset.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
AVAsset 5.2 Yes No Yes, macOS only No Yes

MBS( "AVAsset.Loaded"; Asset )

Parameters

Parameter Description Example value
Asset The reference number of the asset. Please use AVAsset.OpenContainer, AVAsset.OpenFile or AVAsset.OpenURL function to get asset reference. $asset

Result

Returns status or error.

Description

Queries load status of asset.
Returns status like Loading, Loaded, Cancelled, Failed or Unknown.
If status starts with "Failed: ", it is followed by a reason.

Examples

Load and check status:

Set Variable [$Asset; Value:MBS( "AVAsset.OpenFile"; "/Users/cs/Desktop/test.mp4" )]
Set Variable [$Loaded1; Value:MBS( "AVAsset.Loaded"; $Asset )]
Pause/Resume Script [Duration (seconds): ,1]
Set Variable [$Loaded2; Value:MBS( "AVAsset.Loaded"; $Asset )]
Set Variable [$r; Value:MBS( "AVAsset.Release"; $Asset )]
Show Custom Dialog ["Loaded"; $Loaded1 & ¶ & $Loaded2]

See also


AVAsset.IsReadable   -   AVAsset.Lyrics

Feedback: Report problem or ask question.




Links
MBS FileMaker tutorial videos