belongs to Maven artifact androidx.media:media:1.0.0-alpha1

MediaPlayer2.DrmInfo

public static abstract class MediaPlayer2.DrmInfo
extends Object

java.lang.Object
   ↳ androidx.media.MediaPlayer2.DrmInfo


Encapsulates the DRM properties of the source.

Summary

Public constructors

MediaPlayer2.DrmInfo()

Public methods

abstract Map<UUID, byte[]> getPssh()

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

abstract List<UUID> getSupportedSchemes()

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

Inherited methods

Public constructors

MediaPlayer2.DrmInfo

MediaPlayer2.DrmInfo ()

Public methods

getPssh

Map<UUID, byte[]> getPssh ()

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

Returns
Map<UUID, byte[]>

getSupportedSchemes

List<UUID> getSupportedSchemes ()

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.

Returns
List<UUID>