Destroy the player after destroying JavascriptSubtitlesOctopus
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user