Stay organized with collections
Save and categorize content based on your preferences.
OnDrmInfoListener
interface OnDrmInfoListener
Interface definition of a callback to be invoked when the DRM info becomes available
Summary
Public methods |
abstract Unit |
Called to indicate DRM info is available
|
Public methods
onDrmInfo
abstract fun onDrmInfo(
mp: MediaPlayer!,
drmInfo: MediaPlayer.DrmInfo!
): Unit
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# MediaPlayer.OnDrmInfoListener\n\nAdded in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nOnDrmInfoListener\n=================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/media/MediaPlayer.OnDrmInfoListener \"View this page in Java\") \n\n```\ninterface OnDrmInfoListener\n```\n\n|--------------------------------------------------|\n| [android.media.MediaPlayer.OnDrmInfoListener](#) |\n\nInterface definition of a callback to be invoked when the DRM info becomes available\n\nSummary\n-------\n\n| Public methods ||\n|---------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onDrmInfo](#onDrmInfo(android.media.MediaPlayer,%20android.media.MediaPlayer.DrmInfo))`(`mp:` `[MediaPlayer](/reference/kotlin/android/media/MediaPlayer)!`, `drmInfo:` `[MediaPlayer.DrmInfo](/reference/kotlin/android/media/MediaPlayer.DrmInfo)!`)` Called to indicate DRM info is available |\n\nPublic methods\n--------------\n\n### onDrmInfo\n\nAdded in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun onDrmInfo(\n mp: MediaPlayer!, \n drmInfo: MediaPlayer.DrmInfo!\n): Unit\n```\n\nCalled to indicate DRM info is available\n\n| Parameters ||\n|-----------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `mp` | [MediaPlayer](/reference/kotlin/android/media/MediaPlayer)!: the `MediaPlayer` associated with this callback |\n| `drmInfo` | [MediaPlayer.DrmInfo](/reference/kotlin/android/media/MediaPlayer.DrmInfo)!: DRM info of the source including PSSH, and subset of crypto schemes supported by this device |"]]