Clear JavascriptSubtitlesOctopus when an error occurs
This commit is contained in:
parent
a18cd96012
commit
9338b36b8e
1 changed files with 3 additions and 0 deletions
|
@ -1062,6 +1062,9 @@ function tryRemoveElement(elem) {
|
||||||
workerUrl: `${appRouter.baseUrl()}/libraries/subtitles-octopus-worker.js`,
|
workerUrl: `${appRouter.baseUrl()}/libraries/subtitles-octopus-worker.js`,
|
||||||
legacyWorkerUrl: `${appRouter.baseUrl()}/libraries/subtitles-octopus-worker-legacy.js`,
|
legacyWorkerUrl: `${appRouter.baseUrl()}/libraries/subtitles-octopus-worker-legacy.js`,
|
||||||
onError() {
|
onError() {
|
||||||
|
// HACK: Clear JavascriptSubtitlesOctopus: it gets disposed when an error occurs
|
||||||
|
htmlVideoPlayer.#currentSubtitlesOctopus = null;
|
||||||
|
|
||||||
onErrorInternal(htmlVideoPlayer, 'mediadecodeerror');
|
onErrorInternal(htmlVideoPlayer, 'mediadecodeerror');
|
||||||
},
|
},
|
||||||
timeOffset: (this._currentPlayOptions.transcodingOffsetTicks || 0) / 10000000,
|
timeOffset: (this._currentPlayOptions.transcodingOffsetTicks || 0) / 10000000,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue