dasLogin

Performs a DAS login, automatically determining the DRM type based on the presence of a CONNECT opvault resource. The file name should be "connect_opvault" and placed in the "res/raw" directory of the application. If Connect login fails, it will fall back to Widevine login.

Return

The access token string on successful authentication

Throws

if DAS login fails or network error occurs


fun dasLogin(drmType: String, isL3: Boolean, opVault: ByteArray?): String

Performs a DAS login

Parameters

drmType

The DRM type: "com.widevine.alpha" | "com.nagra.connect"

isL3

Whether the device is Widevine L3 (true) or L1 (false)

opVault

CONNECT opvault bytes, or null for Widevine