diff --git a/src/ext/lib/ar-detect/ArDetector.ts b/src/ext/lib/ar-detect/ArDetector.ts index babd4f0..8c3ce04 100644 --- a/src/ext/lib/ar-detect/ArDetector.ts +++ b/src/ext/lib/ar-detect/ArDetector.ts @@ -269,7 +269,7 @@ class ArDetector { destroy(){ this.logger.log('info', 'init', `%c[ArDetect::destroy] <@${this.arid}> Destroying aard.`, _ard_console_stop); // this.debugCanvas.destroy(); - this.halt(); + this.stop(); } //#endregion lifecycle @@ -313,11 +313,6 @@ class ArDetector { this.stop(); } - halt(){ - this.logger.log('info', 'debug', `"%c[ArDetect::stop] <@${this.arid}> Halting automatic aspect ratio detection`, _ard_console_stop); - this.stop(); - } - setManualTick(manualTick) { this.manualTickEnabled = manualTick; } diff --git a/src/ext/lib/video-data/VideoData.ts b/src/ext/lib/video-data/VideoData.ts index c6bc12a..f485279 100644 --- a/src/ext/lib/video-data/VideoData.ts +++ b/src/ext/lib/video-data/VideoData.ts @@ -345,7 +345,7 @@ class VideoData { this.destroyed = true; this.eventBus?.unsetUpstreamBus(); try { - this.arDetector.halt(); + this.arDetector.stop(); this.arDetector.destroy(); } catch (e) {} this.arDetector = undefined; @@ -389,7 +389,7 @@ class VideoData { disable(options?: {fromPlayer?: boolean}) { this.enabled = false; - this.stopArDetection(); + this.arDetector?.stop(); this.video.classList.remove(this.baseCssName); this.video.classList.remove(this.userCssClassName); @@ -677,7 +677,7 @@ class VideoData { stopArDetection() { if (this.arDetector) { - this.arDetector.halt(); + this.arDetector.stop(); } } //#endregion