Class DrmUtil
- java.lang.Object
-
- com.google.android.exoplayer2.drm.DrmUtil
-
@Deprecated public final class DrmUtil extends Object
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.DRM-related utility methods.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceDrmUtil.ErrorSourceDeprecated.Identifies the operation which caused a DRM-related error.
-
Field Summary
Fields Modifier and Type Field Description static intERROR_SOURCE_EXO_MEDIA_DRMDeprecated.Corresponds to failures caused by anExoMediaDrmmethod call.static intERROR_SOURCE_LICENSE_ACQUISITIONDeprecated.Corresponds to failures caused by an operation related to obtaining DRM licenses.static intERROR_SOURCE_PROVISIONINGDeprecated.Corresponds to failures caused by an operation related to provisioning the device.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static @com.google.android.exoplayer2.PlaybackException.ErrorCode intgetErrorCodeForMediaDrmException(Exception exception, @com.google.android.exoplayer2.drm.DrmUtil.ErrorSource int errorSource)Deprecated.Returns thePlaybackException.ErrorCodethat corresponds to the given DRM-related exception.
-
-
-
Field Detail
-
ERROR_SOURCE_EXO_MEDIA_DRM
public static final int ERROR_SOURCE_EXO_MEDIA_DRM
Deprecated.Corresponds to failures caused by anExoMediaDrmmethod call.- See Also:
- Constant Field Values
-
ERROR_SOURCE_LICENSE_ACQUISITION
public static final int ERROR_SOURCE_LICENSE_ACQUISITION
Deprecated.Corresponds to failures caused by an operation related to obtaining DRM licenses.- See Also:
- Constant Field Values
-
ERROR_SOURCE_PROVISIONING
public static final int ERROR_SOURCE_PROVISIONING
Deprecated.Corresponds to failures caused by an operation related to provisioning the device.- See Also:
- Constant Field Values
-
-
Method Detail
-
getErrorCodeForMediaDrmException
@ErrorCode public static @com.google.android.exoplayer2.PlaybackException.ErrorCode int getErrorCodeForMediaDrmException(Exception exception, @ErrorSource @com.google.android.exoplayer2.drm.DrmUtil.ErrorSource int errorSource)
Deprecated.Returns thePlaybackException.ErrorCodethat corresponds to the given DRM-related exception.- Parameters:
exception- The DRM-related exception for which to obtain a correspondingPlaybackException.ErrorCode.errorSource- TheDrmUtil.ErrorSourcefor the givenexception.- Returns:
- The
PlaybackException.ErrorCodethat corresponds to the given DRM-related exception.
-
-