From 0ae2638af98d18ae15f1badcdfe8ae683d6a6114 Mon Sep 17 00:00:00 2001 From: Dorian Date: Sat, 14 Feb 2026 10:34:34 +0000 Subject: [PATCH] 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. --- src/components/VideoPlayer.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/VideoPlayer.vue b/src/components/VideoPlayer.vue index e723569..5b2b6f9 100644 --- a/src/components/VideoPlayer.vue +++ b/src/components/VideoPlayer.vue @@ -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')) {