mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-10-07 03:13:43 +00:00
Merge pull request #4702 from ramidzkh/fix/jassub-type-error
Fix sending URLs instead of strings to jassub, leading to DataCloneErrors
This commit is contained in:
commit
93c4dbbe4c
@ -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',
|
||||
|
Loading…
Reference in New Issue
Block a user