AVAsset.MetadataKeys
--------------------

Queries metadata keys.

| 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.MetadataKeys"; Asset { ; Format } ) 

**MBS**( **"AVAsset.MetadataKeys";** /\* Queries metadata keys. \*/  
**$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. \*/   
**$Format**) /\* Optional; The metadata format to use.e.g. "com.apple.quicktime.udta" \*/ 

### Parameters

| Parameter | Description | Example | Flags |
|---|---|---|---|
| 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 |  |
| Format | The metadata format to use. | "com.apple.quicktime.udta" | Optional |

### Result

Returns list or error.

### Description

Queries metadata keys.  
You can pass empty format to query all keys.  
Or you use [AVAsset.AvailableMetadataFormats](AVAssetAvailableMetadataFormats.md) to query the list of formats and limit query to only the given format.  
### Examples

Queries metadata keys:

 MBS ( "AVAsset.MetadataKeys"; "40001" )  
### See also

- [AVAsset.AvailableMetadataFormats](AVAssetAvailableMetadataFormats.md)
- [AVAsset.Metadata](AVAssetMetadata.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_)

### Blog Entries

- [MBS FileMaker Plugin, version 5.2pr9](https://www.mbsplugins.de/archive/2015-08-01/MBS_FileMaker_Plugin_version_5/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 19th June 2015 , last changed 5th July 2015

  
[AVAsset.Metadata](AVAssetMetadata.md) - [AVAsset.NaturalHeight](AVAssetNaturalHeight.md)

[HTML Version](AVAssetMetadataKeys.shtml)