Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
AVAsset.Duration
Returns the duration of a asset in seconds.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
AVAsset | 5.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes, on macOS | ✅ Yes |
MBS( "AVAsset.Duration"; 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 value or error.
Description
Returns the duration of a asset in seconds.Examples
Query duration of a video:
MBS( "AVAsset.Duration"; $asset)
See also
Example Databases
This function is free to use.
Created 19th June 2015, last changed 13th January 2021