requestPurchaseLicense

open fun requestPurchaseLicense(video: Video, listener: EventListener)

Submits an offline playback purchase license request for the specified video asynchronously. Upon successful acquisition of license, the video object will be updated to set the license key set identifier and actual expiration date.

Parameters

video

the video for which the offline playback license should be acquired.

listener

reference to a listener that will be notified about the outcome of the request.


open fun requestPurchaseLicense(video: Video, listener: EventListener, config: CustomerRightsTokenConfig)

Submits an offline playback purchase license request for the specified video asynchronously. Upon successful acquisition of license, the video object will be updated to set the license key set identifier and actual expiration date.

Parameters

video

the video for which the offline playback license should be acquired.

listener

reference to a listener that will be notified about the outcome of the request.

config

defines additional configuration for the license request


open fun requestPurchaseLicense(video: Video, listener: EventListener, httpRequestConfig: HttpRequestConfig)

Submits an offline playback purchase license request for the specified video asynchronously. Upon successful acquisition of license, the video object will be update to set the license key set identifier and actual expiration date.

Parameters

video

the video for which the offline playback license should be acquired.

listener

reference to a listener that will be notified about the outcome of the request.

httpRequestConfig

additional parameters for the license request.