BrightcoveDrmUtil

Provides utility methods to work DRM licenses.

Functions

Link copied to clipboard
open fun getLicenseDuration(drmSession: BrightcoveDrmSession): Pair<Long, Long>
Returns license and playback durations remaining in seconds.
Link copied to clipboard
open fun getLongValue(map: Map<String, String>, key: String, defaultValue: Long): Long
Get the value of the specified key from the given map as a long primitive value.
Link copied to clipboard
Finds the total number of remaining seconds that the DRM license is valid.
Link copied to clipboard
Finds the total number of remaining seconds that the DRM license is valid for playback.