AVAsset.Metadata
----------------

Queries metadata.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [AVAsset](component_AVAsset.md) | [5.2](newinversion52.md) | ✅ Yes | ❌ No | ❌ No | ✅ Yes, on macOS | ✅ Yes |

MBS( "AVAsset.Metadata"; Asset; Key ) 

**MBS**( **"AVAsset.Metadata";** /\* Queries metadata. \*/  
**$Asset**; /\* The reference number of the asset. Please use [AVAsset.OpenContainer](AVAssetOpenContainer.md), [AVAsset.OpenFile](AVAssetOpenFile.md) or [AVAsset.OpenURL](AVAssetOpenURL.md) function to get asset reference. \*/   
**$Key**) /\* The metadata key to query. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Asset | The reference number of the asset. Please use [AVAsset.OpenContainer](AVAssetOpenContainer.md), [AVAsset.OpenFile](AVAssetOpenFile.md) or [AVAsset.OpenURL](AVAssetOpenURL.md) function to get asset reference. | $asset |
| Key | The metadata key to query. |  |

### Result

Returns value or error.

### Description

Queries metadata.  
### Examples

Queries title:

 MBS ( "AVAsset.Metadata"; "40001"; "uiso/titl" )  
### See also

- [AVAsset.MetadataKeys](AVAssetMetadataKeys.md)
- [AVAsset.OpenContainer](AVAssetOpenContainer.md)
- [AVAsset.OpenFile](AVAssetOpenFile.md)
- [AVAsset.OpenURL](AVAssetOpenURL.md)

### Example Databases

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

This function checks for a license.

Created 19th June 2015 , last changed 9th November 2021

  
[AVAsset.Lyrics](AVAssetLyrics.md) - [AVAsset.MetadataKeys](AVAssetMetadataKeys.md)

[HTML Version](AVAssetMetadata.shtml)