Fix HLS error exports across platforms

This commit is contained in:
vineyardbovines
2026-07-21 11:28:12 -04:00
parent 4bd23313d4
commit 06ccfa425f
3 changed files with 16 additions and 13 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
}
}