fix: cast KeyRewriteLoader to any for TypeScript compatibility in VideoPlayer

- Updated the loader configuration in the HLS setup to ensure compatibility with TypeScript by casting KeyRewriteLoader to any. This change addresses type-checking issues while maintaining the functionality of key URL rewriting for HLS playback.
This commit is contained in:
Dorian
2026-02-14 10:34:34 +00:00
parent 8aff9271a4
commit 0ae2638af9

View File

@@ -395,7 +395,7 @@ function initPlayer(url: string) {
hls = new Hls({
enableWorker: true,
lowLatencyMode: false,
loader: KeyRewriteLoader,
loader: KeyRewriteLoader as any,
// Attach auth tokens to key requests so paid content can be decrypted
xhrSetup(xhr: XMLHttpRequest, xhrUrl: string) {
if (xhrUrl.includes('/key')) {