Stay organized with collections
Save and categorize content based on your preferences.
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
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 |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[],null,["# MediaPlayer.OnDrmInfoListener\n\nAdded in [API level 26](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\nMediaPlayer.OnDrmInfoListener\n=============================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/media/MediaPlayer.OnDrmInfoListener \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\nstatic\n\n\ninterface\nMediaPlayer.OnDrmInfoListener\n`\n\n\n`\n\n\n`\n\n|---------------------------------------------|\n| android.media.MediaPlayer.OnDrmInfoListener |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nInterface definition of a callback to be invoked when the\nDRM info becomes available\n\nSummary\n-------\n\n| ### Public methods ||\n|------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract void` | ` `[onDrmInfo](/reference/android/media/MediaPlayer.OnDrmInfoListener#onDrmInfo(android.media.MediaPlayer,%20android.media.MediaPlayer.DrmInfo))`(`[MediaPlayer](/reference/android/media/MediaPlayer)` mp, `[MediaPlayer.DrmInfo](/reference/android/media/MediaPlayer.DrmInfo)` drmInfo) ` Called to indicate DRM info is available |\n\nPublic methods\n--------------\n\n### onDrmInfo\n\nAdded in [API level 26](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract void onDrmInfo (MediaPlayer mp, \n MediaPlayer.DrmInfo drmInfo)\n```\n\nCalled to indicate DRM info is available\n\n\u003cbr /\u003e\n\n| Parameters ||\n|-----------|----------------------------------------------------------------------------------------------------------------------------|\n| `mp` | `MediaPlayer`: the `MediaPlayer` associated with this callback \u003cbr /\u003e |\n| `drmInfo` | `MediaPlayer.DrmInfo`: DRM info of the source including PSSH, and subset of crypto schemes supported by this device \u003cbr /\u003e |"]]