Stay organized with collections
Save and categorize content based on your preferences.
open class MediaDrmResetException : IllegalStateException, MediaDrmThrowable
This exception is thrown when the MediaDrm instance has become unusable due to a restart of the mediaserver process. To continue, the app must release the MediaDrm object, then create and initialize a new one.
Summary
Public constructors
MediaDrmResetException(detailMessage: String!)
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,["# MediaDrmResetException\n\nAdded in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nMediaDrmResetException\n======================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/media/MediaDrmResetException \"View this page in Java\") \n\n```\nopen class MediaDrmResetException : IllegalStateException, MediaDrmThrowable\n```\n\n|---|---|---|---|---|-------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||||||\n| ↳ | [kotlin.Throwable](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-throwable/index.html) |||||\n| | ↳ | [java.lang.Exception](../../java/lang/Exception.html#) ||||\n| | | ↳ | [java.lang.RuntimeException](../../java/lang/RuntimeException.html#) |||\n| | | | ↳ | [java.lang.IllegalStateException](../../java/lang/IllegalStateException.html#) ||\n| | | | | ↳ | [android.media.MediaDrmResetException](#) |\n\nThis exception is thrown when the MediaDrm instance has become unusable due to a restart of the mediaserver process. To continue, the app must release the MediaDrm object, then create and initialize a new one.\n\nSummary\n-------\n\n| Public constructors ||\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|\n| [MediaDrmResetException](#MediaDrmResetException(kotlin.String))`(`detailMessage:` `[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)!`)` \u003cbr /\u003e |\n\n| Inherited functions ||\n|---|---|\n| From class [MediaDrmThrowable](/reference/kotlin/android/media/MediaDrmThrowable) |----------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [getErrorContext](/reference/kotlin/android/media/MediaDrmThrowable#getErrorContext())`()` Returns [MediaDrm](/reference/kotlin/android/media/MediaDrm) plugin vendor defined error context associated with this [MediaDrmThrowable](/reference/kotlin/android/media/MediaDrmThrowable). Please consult the [MediaDrm](/reference/kotlin/android/media/MediaDrm) plugin vendor for details on the error context. \u003cbr /\u003e | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [getOemError](/reference/kotlin/android/media/MediaDrmThrowable#getOemError())`()` Returns OEM or SOC specific error code associated with this [MediaDrmThrowable](/reference/kotlin/android/media/MediaDrmThrowable). Please consult the [MediaDrm](/reference/kotlin/android/media/MediaDrm) plugin, chip, or device vendor for details on the error code. \u003cbr /\u003e | | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [getVendorError](/reference/kotlin/android/media/MediaDrmThrowable#getVendorError())`()` Returns [MediaDrm](/reference/kotlin/android/media/MediaDrm) plugin vendor defined error code associated with this [MediaDrmThrowable](/reference/kotlin/android/media/MediaDrmThrowable). Please consult the [MediaDrm](/reference/kotlin/android/media/MediaDrm) plugin vendor for details on the error code. \u003cbr /\u003e | ||\n\nPublic constructors\n-------------------\n\n### MediaDrmResetException\n\nAdded in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nMediaDrmResetException(detailMessage: String!)\n```"]]