From 73b5d0c37bae2ab154a7ea934b475988362c8fb8 Mon Sep 17 00:00:00 2001 From: aquilescanta Date: Wed, 7 Jul 2021 12:24:30 +0100 Subject: [PATCH] Expand documentation of ERROR_CODE_DRM_CONTENT_ERROR PiperOrigin-RevId: 383382813 --- .../com/google/android/exoplayer2/PlaybackException.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/library/common/src/main/java/com/google/android/exoplayer2/PlaybackException.java b/library/common/src/main/java/com/google/android/exoplayer2/PlaybackException.java index a8ee7a9e8a..40b09eea93 100644 --- a/library/common/src/main/java/com/google/android/exoplayer2/PlaybackException.java +++ b/library/common/src/main/java/com/google/android/exoplayer2/PlaybackException.java @@ -182,7 +182,12 @@ public class PlaybackException extends Exception implements Bundleable { public static final int ERROR_CODE_DRM_SCHEME_UNSUPPORTED = 6001; /** Caused by a failure while provisioning the device. */ public static final int ERROR_CODE_DRM_PROVISIONING_FAILED = 6002; - /** Caused by attempting to play incompatible DRM-protected content. */ + /** + * Caused by attempting to play incompatible DRM-protected content. + * + *

For example, this can happen when attempting to play a DRM protected stream using a scheme + * (like Widevine) for which there is no corresponding license acquisition data (like a pssh box). + */ public static final int ERROR_CODE_DRM_CONTENT_ERROR = 6003; /** Caused by a failure while trying to obtain a license. */ public static final int ERROR_CODE_DRM_LICENSE_ACQUISITION_FAILED = 6004;