Destroy the player after destroying JavascriptSubtitlesOctopus
This commit is contained in:
parent
9338b36b8e
commit
9f6fdfdd72
1 changed files with 4 additions and 4 deletions
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue