createLicenseManager

abstract 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.

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.

Throws

If the DRM scheme is unsupported or if a new license manager cannot be created.


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