mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Move "destroy" after "stop" and separate commands
This commit is contained in:
parent
5115500443
commit
1806baec37
1 changed files with 6 additions and 4 deletions
|
@ -30,17 +30,15 @@ export class ComicsPlayer {
|
|||
return this.setCurrentSrc(elem, options);
|
||||
}
|
||||
|
||||
destroy() {
|
||||
// Nothing to do here
|
||||
}
|
||||
|
||||
stop() {
|
||||
this.unbindEvents();
|
||||
|
||||
const stopInfo = {
|
||||
src: this.item
|
||||
};
|
||||
|
||||
Events.trigger(this, 'stopped', [stopInfo]);
|
||||
|
||||
this.archiveSource?.release();
|
||||
|
||||
const elem = this.mediaElement;
|
||||
|
@ -52,6 +50,10 @@ export class ComicsPlayer {
|
|||
loading.hide();
|
||||
}
|
||||
|
||||
destroy() {
|
||||
// Nothing to do here
|
||||
}
|
||||
|
||||
currentTime() {
|
||||
// * 1000 is an arbitrary value copied over from the bookPlayer
|
||||
return this.progress * 1000;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue