diff --git a/src/plugins/comicsPlayer/plugin.js b/src/plugins/comicsPlayer/plugin.js index ce7fd46187..700f812f3f 100644 --- a/src/plugins/comicsPlayer/plugin.js +++ b/src/plugins/comicsPlayer/plugin.js @@ -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;