Skip to content

@videts/vide


@videts/vide / drm / detectKeySystem

Function: detectKeySystem()

detectKeySystem(candidates): Promise<KeySystem | null>

Defined in: drm/detect.ts:42

Detect the first supported key system from the given candidates. Returns the KeySystem string, or null if none are supported.

Candidates can be plain KeySystem strings (backward compatible) or KeySystemCandidate objects with optional robustness/encryptionScheme.

Parameters

ParameterType
candidates(KeySystem | KeySystemCandidate)[]

Returns

Promise<KeySystem | null>