Destroy the player after destroying JavascriptSubtitlesOctopus

This commit is contained in:
Dmitry Lyzo 2021-09-23 21:30:59 +03:00
parent 9338b36b8e
commit 9f6fdfdd72

View file

@ -675,14 +675,14 @@ function tryRemoveElement(elem) {
}
onEndedInternal(this, elem, this.onError);
if (destroyPlayer) {
this.destroy();
}
}
this.destroyCustomTrack(elem);
if (destroyPlayer) {
this.destroy();
}
return Promise.resolve();
}