Skip to content

@videts/vide


@videts/vide / drm

drm

Interfaces

InterfaceDescription
ClearKeyConfigClearKey DRM configuration (no license server required).
DrmPluginOptionsOptions for the DRM plugin.
DrmRetryConfigRetry configuration for license requests and certificate fetching.
FairPlayConfigFairPlay DRM configuration.
KeySystemCandidateA candidate key system with optional robustness and encryption scheme.
PlayReadyConfigPlayReady DRM configuration.
ResolvedDrmConfigResolved DRM configuration stored via setPluginData("drm").
WidevineConfigWidevine DRM configuration.

Type Aliases

Type AliasDescription
KeySystemKey system identifier string.

Functions

FunctionDescription
dashDrmConfigGenerate dash.js settings fragment from resolved DRM info.
detectKeySystemDetect the first supported key system from the given candidates. Returns the KeySystem string, or null if none are supported.
drmCreate a DRM plugin for vide.
hlsDrmConfigGenerate hls.js config fragment from resolved DRM info.
queryDrmSupportQuery support for multiple key systems. Returns a Map with each key system mapped to a boolean indicating support.
setupEmeSet up standalone EME (Encrypted Media Extensions) handling on a video element. This enables DRM-protected MP4 playback without hls.js or dash.js.