1
0
Fork 0
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:
Patrick Farwick 2021-10-05 20:10:25 +00:00
parent 5115500443
commit 1806baec37

View file

@ -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;