Back to Exoplayer

UnsupportedDrmException (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/drm/UnsupportedDrmException.html

latest5.3 KB
Original Source

Package com.google.android.exoplayer2.drm

Class UnsupportedDrmException


[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public final classUnsupportedDrmExceptionextends[Exception](https://developer.android.com/reference/java/lang/Exception.html "class or interface in java.lang")

Deprecated. com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.

Thrown when the requested DRM scheme is not supported. See Also:Serialized Form

Nested Class Summary

Nested Classes | Modifier and Type | Class | Description | | --- | --- | --- | | static interface | UnsupportedDrmException.Reason | Deprecated.

The reason for the exception. |

Field Summary

Fields | Modifier and Type | Field | Description | | --- | --- | --- | | @com.google.android.exoplayer2.drm.UnsupportedDrmException.Reason int | reason | Deprecated.

Either REASON_UNSUPPORTED_SCHEME or REASON_INSTANTIATION_ERROR. | | static int | REASON_INSTANTIATION_ERROR | Deprecated.

There device advertises support for the requested DRM scheme, but there was an error instantiating it. | | static int | REASON_UNSUPPORTED_SCHEME | Deprecated.

The requested DRM scheme is unsupported by the device. |

Constructor Summary

Constructors | Constructor | Description | | --- | --- | | UnsupportedDrmException​(@com.google.android.exoplayer2.drm.UnsupportedDrmException.Reason int reason) | Deprecated. | | UnsupportedDrmException​(@com.google.android.exoplayer2.drm.UnsupportedDrmException.Reason int reason, Exception cause) | Deprecated. |

Method Summary

- 

Methods inherited from class java.lang.Throwable

addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

- 

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Field Detail

- 

REASON_UNSUPPORTED_SCHEME

public static final int REASON_UNSUPPORTED_SCHEME

Deprecated.

The requested DRM scheme is unsupported by the device. See Also:Constant Field Values

- 

REASON_INSTANTIATION_ERROR

public static final int REASON_INSTANTIATION_ERROR

Deprecated.

There device advertises support for the requested DRM scheme, but there was an error instantiating it. The cause can be retrieved using Throwable.getCause(). See Also:Constant Field Values

- 

reason

[@Reason](UnsupportedDrmException.Reason.html "annotation in com.google.android.exoplayer2.drm")public final @com.google.android.exoplayer2.drm.UnsupportedDrmException.Reason int reason

Deprecated.

Either REASON_UNSUPPORTED_SCHEME or REASON_INSTANTIATION_ERROR.

Constructor Detail

- 

UnsupportedDrmException

public UnsupportedDrmException​([@Reason](UnsupportedDrmException.Reason.html "annotation in com.google.android.exoplayer2.drm")@com.google.android.exoplayer2.drm.UnsupportedDrmException.Reason int reason)

Deprecated. Parameters:reason - REASON_UNSUPPORTED_SCHEME or REASON_INSTANTIATION_ERROR.

- 

UnsupportedDrmException

public UnsupportedDrmException​([@Reason](UnsupportedDrmException.Reason.html "annotation in com.google.android.exoplayer2.drm")@com.google.android.exoplayer2.drm.UnsupportedDrmException.Reason int reason,[Exception](https://developer.android.com/reference/java/lang/Exception.html "class or interface in java.lang")cause)

Deprecated. Parameters:reason - REASON_UNSUPPORTED_SCHEME or REASON_INSTANTIATION_ERROR.cause - The cause of this exception.