AVAsset.HasProtectedContent
---------------------------

Queries whether the asset has protected content.

| 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.HasProtectedContent"; Asset ) 

**MBS**( **"AVAsset.HasProtectedContent";** /\* Queries whether the asset has protected content. \*/  
**$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. \*/ 

### 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 |

### Result

Returns 1, 0 or error.

### Description

Queries whether the asset has protected content.  
### Examples

Checks protection status:

 MBS ( "AVAsset.HasProtectedContent"; $status )  
### See also

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

This function is free to use.

Created 19th June 2015 , last changed 29th July 2017

  
[AVAsset.Framerate](AVAssetFramerate.md) - [AVAsset.Image](AVAssetImage.md)

[HTML Version](AVAssetHasProtectedContent.shtml)