mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Give JavascriptSubtitlesOctopus time to dispose itself
This commit is contained in:
parent
9f6fdfdd72
commit
50880983cc
1 changed files with 4 additions and 1 deletions
|
@ -1065,7 +1065,10 @@ function tryRemoveElement(elem) {
|
||||||
// HACK: Clear JavascriptSubtitlesOctopus: it gets disposed when an error occurs
|
// HACK: Clear JavascriptSubtitlesOctopus: it gets disposed when an error occurs
|
||||||
htmlVideoPlayer.#currentSubtitlesOctopus = null;
|
htmlVideoPlayer.#currentSubtitlesOctopus = null;
|
||||||
|
|
||||||
|
// HACK: Give JavascriptSubtitlesOctopus time to dispose itself
|
||||||
|
setTimeout(() => {
|
||||||
onErrorInternal(htmlVideoPlayer, 'mediadecodeerror');
|
onErrorInternal(htmlVideoPlayer, 'mediadecodeerror');
|
||||||
|
}, 0);
|
||||||
},
|
},
|
||||||
timeOffset: (this._currentPlayOptions.transcodingOffsetTicks || 0) / 10000000,
|
timeOffset: (this._currentPlayOptions.transcodingOffsetTicks || 0) / 10000000,
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue