add client event for failed video playback (#11170)

This commit is contained in:
Spence Pope
2026-07-21 11:32:53 -04:00
committed by GitHub
parent 6fea12480a
commit 26143c1a48
7 changed files with 110 additions and 6 deletions
@@ -19,3 +19,16 @@ export class VideoNotFoundError extends Error {
super('Video not found')
}
}
/**
* Fatal hls.js playback error. `detail` is the hls.js error details code
* (e.g. bufferAppendError), which buckets failures more usefully than the
* error message.
*/
export class HLSFatalError extends Error {
detail: string
constructor(detail: string, cause: Error) {
super(cause.message, {cause})
this.detail = detail
}
}