public class BrightcoveDrmUtil
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
BrightcoveDrmUtil()
Prevent construction of this utility class.
|
Modifier and Type | Method and Description |
---|---|
static android.util.Pair<java.lang.Long,java.lang.Long> |
getLicenseDuration(BrightcoveDrmSession drmSession)
Deprecated.
|
static long |
getLongValue(java.util.Map<java.lang.String,java.lang.String> map,
java.lang.String key,
long defaultValue)
Get the value of the specified key from the given map as a long primitive value.
|
static long |
getRemainingLicenseDuration(BrightcoveDrmSession drmSession)
Deprecated.
|
static long |
getRemainingPlaybackDuration(BrightcoveDrmSession drmSession)
Deprecated.
|
protected BrightcoveDrmUtil()
public static long getLongValue(java.util.Map<java.lang.String,java.lang.String> map, @NonNull java.lang.String key, long defaultValue)
map
- reference to the map.key
- the unique name of the value to be read.defaultValue
- the value that should be returned if the value cannot be read.@Deprecated public static long getRemainingLicenseDuration(@NonNull BrightcoveDrmSession drmSession)
drmSession
- reference to the DRM session.Constants.TIME_UNSET
if the license duration is set, otherwise the duration as total
of remaining seconds.@Deprecated public static long getRemainingPlaybackDuration(@NonNull BrightcoveDrmSession drmSession)
drmSession
- reference to the DRM session.Constants.TIME_UNSET
if the license duration is set, otherwise the duration as total
of remaining seconds.@Deprecated public static android.util.Pair<java.lang.Long,java.lang.Long> getLicenseDuration(BrightcoveDrmSession drmSession)
drmSession
- reference to the DRM session.Pair
consisting of the remaining license and playback durations in seconds.java.lang.IllegalStateException
- If called when a session isn't opened.