AVExport.Duration
-----------------

Queries duration of the asset.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [AVExport](component_AVExport.md) | [6.1](newinversion61.md) | ✅ Yes | ❌ No | ❌ No | ✅ Yes, on macOS | ✅ Yes |

MBS( "AVExport.Duration"; AVExportSession ) 

**MBS**( **"AVExport.Duration";** /\* Queries duration of the asset. \*/  
**$AVExportSession**) /\* The session reference number.e.g. $AVExport \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| AVExportSession | The session reference number. | $AVExport |

### Result

Returns number or error.

### Description

Queries duration of the asset.  
Returns duration in seconds.  
### Examples

Query duration:

 Set Field \[AVAsset Export Session::Duration ; MBS ( "AVExport.Duration"; $$AVExport )\]  
### See also

- [AVExport.ExportSession](AVExportExportSession.md)
- [QTExport.Duration](QTExportDuration.md)

### Example Databases

- [Mac only/Movies/AVAsset Export Session](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20only/Movies/AVAsset%20Export%20Session.shtml#2ScriptAnchor_)

This function checks for a license.

Created 29th February 2016 , last changed 1st March 2016

  
[AVExport.CancelExport](AVExportCancelExport.md) - [AVExport.Error](AVExportError.md)

[HTML Version](AVExportDuration.shtml)