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

AVAsset.IsPlayable

Checks whether the asset, or its URL, can be played.

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

Parameters

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

Result

Returns 1, 0 or error.

Description

Checks whether the asset, or its URL, can be played.

Examples

Checks play status:

MBS( "AVAsset.IsPlayable"; $asset)

See also

This function is free to use.

Created 19th June 2015, last changed 22nd December 2022


AVAsset.IsExportable - AVAsset.IsReadable