lightbulb_outline Please take our October 2018 developer survey. Start survey
added in API level 26

MediaPlayer.DrmInfo

public static final class MediaPlayer.DrmInfo
extends Object

java.lang.Object
   ↳ android.media.MediaPlayer.DrmInfo


Encapsulates the DRM properties of the source.

Summary

Public methods

Map<UUID, byte[]> getPssh()

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

UUID[] getSupportedSchemes()

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

Inherited methods

Public methods

getPssh

added in API level 26
public Map<UUID, byte[]> getPssh ()

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

Returns
Map<UUID, byte[]>

getSupportedSchemes

added in API level 26
public 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
UUID[]