createLicenseManager

open fun createLicenseManager(video: Video, source: Source): LicenseManager

Creates a new instance of LicenseManager, which can be used to acquire, renew or releases (Offline) playback DRM license for a specific video source. Note: You need to set DrmSessionEventListener.EventDispatcher if you want to be notified by the Drm Session Events.

Return

a new instance of LicenseManager

Parameters

video

reference to an offline playback enabled video.

source

reference to the source in the video that requires an offline playback license operation.


open fun createLicenseManager(video: Video, source: Source, properties: Map<String, String>): LicenseManager