public final class WidevineUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
PROPERTY_LICENSE_DURATION_REMAINING
Widevine specific key status field name for the remaining license duration, in seconds.
|
static String |
PROPERTY_PLAYBACK_DURATION_REMAINING
Widevine specific key status field name for the remaining playback duration, in seconds.
|
| Modifier and Type | Method and Description |
|---|---|
static Pair<Long,Long> |
getLicenseDurationRemainingSec(DrmSession<?> drmSession)
Returns license and playback durations remaining in seconds.
|
public static final String PROPERTY_LICENSE_DURATION_REMAINING
public static final String PROPERTY_PLAYBACK_DURATION_REMAINING
public static Pair<Long,Long> getLicenseDurationRemainingSec(DrmSession<?> drmSession)
drmSession - The drm session to query.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.