From cd93845d19e00f688ddc76df833698eba0549c4c Mon Sep 17 00:00:00 2001 From: Ramid Khan Date: Tue, 4 Jul 2023 14:01:53 +1000 Subject: [PATCH] Fix sending URL instead of string to jassub, leading to DataCloneErrors --- src/plugins/htmlVideoPlayer/plugin.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/plugins/htmlVideoPlayer/plugin.js b/src/plugins/htmlVideoPlayer/plugin.js index 0ec83d6363..5e0e9ba5b7 100644 --- a/src/plugins/htmlVideoPlayer/plugin.js +++ b/src/plugins/htmlVideoPlayer/plugin.js @@ -1271,13 +1271,13 @@ export class HtmlVideoPlayer { availableFonts: { 'liberation sans': `${appRouter.baseUrl()}/default.woff2` }, // Disabled eslint compat, but is safe as corejs3 polyfills URL // eslint-disable-next-line compat/compat - workerUrl: new URL('jassub/dist/jassub-worker.js', import.meta.url), + workerUrl: new URL('jassub/dist/jassub-worker.js', import.meta.url).href, // eslint-disable-next-line compat/compat - wasmUrl: new URL('jassub/dist/jassub-worker.wasm', import.meta.url), + wasmUrl: new URL('jassub/dist/jassub-worker.wasm', import.meta.url).href, // eslint-disable-next-line compat/compat - legacyWasmUrl: new URL('jassub/dist/jassub-worker.wasm.js', import.meta.url), + legacyWasmUrl: new URL('jassub/dist/jassub-worker.wasm.js', import.meta.url).href, // eslint-disable-next-line compat/compat - modernWasmUrl : new URL('jassub/dist/jassub-worker-modern.wasm', import.meta.url), + modernWasmUrl : new URL('jassub/dist/jassub-worker-modern.wasm', import.meta.url).href, timeOffset: (this._currentPlayOptions.transcodingOffsetTicks || 0) / 10000000, // new jassub options; override all, even defaults blendMode: 'js',