Stay organized with collections
Save and categorize content based on your preferences.
DrmInfo
class DrmInfo
Encapsulates the DRM properties of the source.
Summary
Public methods |
MutableMap<UUID!, ByteArray!>! |
Returns the PSSH info of the data source for each supported DRM scheme.
|
Array<UUID!>! |
Returns the intersection of the data source and the device DRM schemes.
|
Public methods
getPssh
fun getPssh(): MutableMap<UUID!, ByteArray!>!
Returns the PSSH info of the data source for each supported DRM scheme.
getSupportedSchemes
fun getSupportedSchemes(): Array<UUID!>!
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.
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.DrmInfo\n\nAdded in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nDrmInfo\n=======\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/media/MediaPlayer.DrmInfo \"View this page in Java\") \n\n```\nclass DrmInfo\n```\n\n|---|----------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.media.MediaPlayer.DrmInfo](#) |\n\nEncapsulates the DRM properties of the source.\n\nSummary\n-------\n\n| Public methods ||\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------|\n| [MutableMap](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-mutable-map/index.html)\\\u003c[UUID](../../java/util/UUID.html#)!, [ByteArray](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)!\\\u003e! | [getPssh](#getPssh())`()` Returns the PSSH info of the data source for each supported DRM scheme. |\n| [Array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-array/index.html)\\\u003c[UUID](../../java/util/UUID.html#)!\\\u003e! | [getSupportedSchemes](#getSupportedSchemes())`()` Returns the intersection of the data source and the device DRM schemes. |\n\nPublic methods\n--------------\n\n### getPssh\n\nAdded in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun getPssh(): MutableMap\u003cUUID!, ByteArray!\u003e!\n```\n\nReturns the PSSH info of the data source for each supported DRM scheme. \n\n### getSupportedSchemes\n\nAdded in [API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nfun getSupportedSchemes(): Array\u003cUUID!\u003e!\n```\n\nReturns 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."]]