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
|
||||
htmlVideoPlayer.#currentSubtitlesOctopus = null;
|
||||
|
||||
onErrorInternal(htmlVideoPlayer, 'mediadecodeerror');
|
||||
// HACK: Give JavascriptSubtitlesOctopus time to dispose itself
|
||||
setTimeout(() => {
|
||||
onErrorInternal(htmlVideoPlayer, 'mediadecodeerror');
|
||||
}, 0);
|
||||
},
|
||||
timeOffset: (this._currentPlayOptions.transcodingOffsetTicks || 0) / 10000000,
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue