mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-16 18:38:25 -07:00
Clear JavascriptSubtitlesOctopus when an error occurs
This commit is contained in:
parent
a18cd96012
commit
9338b36b8e
@ -1062,6 +1062,9 @@ function tryRemoveElement(elem) {
|
||||
workerUrl: `${appRouter.baseUrl()}/libraries/subtitles-octopus-worker.js`,
|
||||
legacyWorkerUrl: `${appRouter.baseUrl()}/libraries/subtitles-octopus-worker-legacy.js`,
|
||||
onError() {
|
||||
// HACK: Clear JavascriptSubtitlesOctopus: it gets disposed when an error occurs
|
||||
htmlVideoPlayer.#currentSubtitlesOctopus = null;
|
||||
|
||||
onErrorInternal(htmlVideoPlayer, 'mediadecodeerror');
|
||||
},
|
||||
timeOffset: (this._currentPlayOptions.transcodingOffsetTicks || 0) / 10000000,
|
||||
|
Loading…
Reference in New Issue
Block a user