docs/doc/reference/com/google/android/exoplayer2/drm/WidevineUtil.html
Package com.google.android.exoplayer2.drm
[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public final classWidevineUtilextends[Object](https://developer.android.com/reference/java/lang/Object.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.
Utility methods for Widevine.
Fields | Modifier and Type | Field | Description |
| --- | --- | --- |
| static String | PROPERTY_LICENSE_DURATION_REMAINING |
Deprecated.
Widevine specific key status field name for the remaining license duration, in seconds.
|
| static String | PROPERTY_PLAYBACK_DURATION_REMAINING |
Deprecated.
Widevine specific key status field name for the remaining playback duration, in seconds. |
All Methods Static Methods Concrete Methods Deprecated Methods | Modifier and Type | Method | Description |
| --- | --- | --- |
| static Pair<Long,Long> | getLicenseDurationRemainingSec(DrmSession drmSession) |
Deprecated.
Returns license and playback durations remaining in seconds. |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
public static final[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")PROPERTY_LICENSE_DURATION_REMAINING
Deprecated.
Widevine specific key status field name for the remaining license duration, in seconds. See Also:Constant Field Values
-
public static final[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")PROPERTY_PLAYBACK_DURATION_REMAINING
Deprecated.
Widevine specific key status field name for the remaining playback duration, in seconds. See Also:Constant Field Values
-
@Nullable
public static[Pair](https://developer.android.com/reference/android/util/Pair.html "class or interface in android.util")<[Long](https://developer.android.com/reference/java/lang/Long.html?is-external=true "class or interface in java.lang"),[Long](https://developer.android.com/reference/java/lang/Long.html?is-external=true "class or interface in java.lang")> getLicenseDurationRemainingSec([DrmSession](DrmSession.html "interface in com.google.android.exoplayer2.drm")drmSession)
Deprecated.
Returns license and playback durations remaining in seconds.
Parameters:drmSession - The drm session to query.Returns:A Pair consisting of the remaining license and playback durations in seconds, or null if called before the session has been opened or after it's been released.