Save the date! Android Dev Summit is coming to Sunnyvale, CA on Oct 23-24, 2019.

DrmInfo

abstract class DrmInfo
kotlin.Any
   ↳ androidx.media2.MediaPlayer2.DrmInfo

Encapsulates the DRM properties of the source.

Summary

Public constructors

Encapsulates the DRM properties of the source.

Public methods
abstract MutableList<UUID!>!

Returns the intersection of the data source and the device DRM schemes.

abstract MutableMap<UUID!, ByteArray!>!

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

Public constructors

<init>

DrmInfo()

Encapsulates the DRM properties of the source.

Public methods

getSupportedSchemes

abstract fun getSupportedSchemes(): MutableList<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.

getPssh

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

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