Skip to main content

Type Alias: PlayerErrorCategory

PlayerErrorCategory = "aborted" | "network" | "decode" | "source-unsupported" | "encrypted" | "unknown"

Semantic grouping of PlayerError.code, for consumers that want to branch (e.g. offer a retry for network, not for source-unsupported) without hardcoding HTMLMediaElement error codes. encrypted (code 5) means the source needs a decryption key/CDM the player does not have.