Added in API level 26

MediaPlayer.OnDrmInfoListener


public static interface MediaPlayer.OnDrmInfoListener

android.media.MediaPlayer.OnDrmInfoListener


Interface definition of a callback to be invoked when the DRM info becomes available

Summary

Public methods

abstract void onDrmInfo(MediaPlayer mp, MediaPlayer.DrmInfo drmInfo)

Called to indicate DRM info is available

Public methods

onDrmInfo

Added in API level 26
public abstract void onDrmInfo (MediaPlayer mp, 
                MediaPlayer.DrmInfo drmInfo)

Called to indicate DRM info is available

Parameters
mp MediaPlayer: the MediaPlayer associated with this callback

drmInfo MediaPlayer.DrmInfo: DRM info of the source including PSSH, and subset of crypto schemes supported by this device

Discover the latest app development tools, platform updates, training, and documentation for developers across every Android device.

Updated Jun 18, 2024

The Monkey is a program that runs on your emulator or device and generates pseudo-random streams of user events such as clicks, touches, or gestures, as well as a number of system-level events.

Updated Apr 12, 2023

Learn how to use disable Wi-Fi on the Android Emulator.

Updated Apr 12, 2023