# MediaPlayer.DrmInfo

Added in[API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# DrmInfo

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/android/media/MediaPlayer.DrmInfo "View this page in Java")  

```
class DrmInfo
```

|---|------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                         ||
| ↳ | [android.media.MediaPlayer.DrmInfo](https://developer.android.com/reference/kotlin/android/media/MediaPlayer.DrmInfo#) |

Encapsulates the DRM properties of the source.

## Summary

|                                                                                                                                                                                                                                       Public methods                                                                                                                                                                                                                                       ||
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [MutableMap](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-map/index.html)\<[UUID](https://developer.android.com/reference/kotlin/java/util/UUID.html#)!,[ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)!\>! | [getPssh](https://developer.android.com/reference/kotlin/android/media/MediaPlayer.DrmInfo#getPssh())`()` Returns the PSSH info of the data source for each supported DRM scheme.                         |
| [Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)\<[UUID](https://developer.android.com/reference/kotlin/java/util/UUID.html#)!\>!                                                                                                                 | [getSupportedSchemes](https://developer.android.com/reference/kotlin/android/media/MediaPlayer.DrmInfo#getSupportedSchemes())`()` Returns the intersection of the data source and the device DRM schemes. |

## Public methods

### getPssh

Added in[API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
fun getPssh(): MutableMap<UUID!, ByteArray!>!
```

Returns the PSSH info of the data source for each supported DRM scheme.  

### getSupportedSchemes

Added in[API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
fun getSupportedSchemes(): Array<UUID!>!
```

Returns the intersection of the data source and the device DRM schemes. It effectively identifies the subset of the source's DRM schemes which are supported by the device too.