createRentalRightsToken

open fun createRentalRightsToken(absoluteExpiration: Date, playDuration: Long, storeLicense: Boolean): CustomerRightsToken

Creates a CustomerRightsToken for requesting a license with time restrictions.

Return

a custom rights token with the required license information.

Parameters

absoluteExpiration

defines how long the license is valid to start playback.

playDuration

defines in milliseconds how long the content can be consumed after the start of playback.

storeLicense

specifies whether the license is persistent


open fun createRentalRightsToken(absoluteExpiration: Date, playDuration: Long): CustomerRightsToken

Creates a CustomerRightsToken for requesting a persistent license with the specified absolute expiration period

Return

a custom rights token with the required license information.

Parameters

absoluteExpiration

defines how long the license is valid to start playback.

playDuration

defines in milliseconds how long the content can be consumed after the start of playback.


open fun createRentalRightsToken(absoluteExpiration: Date, playDuration: Long, config: CustomerRightsTokenConfig): CustomerRightsToken

Creates a CustomerRightsToken for requesting a persistent license with the specified absolute expiration period

Return

a custom rights token with the required license information.

Parameters

absoluteExpiration

defines how long the license is valid to start playback.

playDuration

defines in milliseconds how long the content can be consumed after the start of playback.

config

defines additional configuration for the CustomerRightsToken