AVPlayer.GetAsset
-----------------

Queries the current asset.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [AVPlayer](component_AVPlayer.md) | [7.3](newinversion73.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |

MBS( "AVPlayer.GetAsset"; AVPlayer ) 

**MBS**( **"AVPlayer.GetAsset";** /\* Queries the current asset. \*/  
**$AVPlayer**) /\* The reference number of the player.e.g. $Player \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| AVPlayer | The reference number of the player. | $Player |

### Result

Returns asset reference number or error.

### Description

Queries the current asset.  
This function allows you to query the file currently playing.  
  
Please call [AVAsset.Release](AVAssetRelease.md) later to free object from memory.  
### See also

- [AVAsset.Release](AVAssetRelease.md)
- [AVPlayer.GetMuted](AVPlayerGetMuted.md)
- [AVPlayer.GetRate](AVPlayerGetRate.md)
- [AVPlayer.GetTime](AVPlayerGetTime.md)
- [AVPlayer.SetMuted](AVPlayerSetMuted.md)

### Release notes

- **Version 7.3**
    - Added [AVPlayer.GetAsset](http://www.mbsplugins.eu/AVPlayerGetAsset.shtml) function.

### Example Databases

- [iOS/Examples/Movie Container iOS and Mac](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/iOS/Examples/Movie%20Container%20iOS%20and%20Mac.shtml#4ScriptAnchor_)

### Blog Entries

- [MBS FileMaker Plugin, version 7.3pr1](https://www.mbsplugins.de/archive/2017-06-05/MBS_FileMaker_Plugin_version_7/monkeybreadsoftware_blog_filemaker)
- [Control AVPlayer on Mac and iOS](https://www.mbsplugins.de/archive/2017-05-30/Control_AVPlayer_on_Mac_and_iO/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 30th May 2017 , last changed 6th June 2017

  
[AVPlayer.FindPlayers](AVPlayerFindPlayers.md) - [AVPlayer.GetAutoResizingMask](AVPlayerGetAutoResizingMask.md)

[HTML Version](AVPlayerGetAsset.shtml)