From b96227b07ae55283baf72c84addac61b644ddec2 Mon Sep 17 00:00:00 2001 From: Tamius Han Date: Mon, 10 Jun 2024 23:40:49 +0200 Subject: [PATCH] plan ahead --- src/ext/lib/video-transform/Resizer.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/ext/lib/video-transform/Resizer.ts b/src/ext/lib/video-transform/Resizer.ts index 71dfb50..bcbbf02 100644 --- a/src/ext/lib/video-transform/Resizer.ts +++ b/src/ext/lib/video-transform/Resizer.ts @@ -121,6 +121,16 @@ class Resizer { 'get-ar': [{ function: () => this.eventBus.send('uw-config-broadcast', {type: 'ar', config: this.lastAr}) }], + 'get-resizer-config': [{ + function: () => this.eventBus.send( + 'uw-resizer-config-broadcast', + { + ar: this.lastAr, + stretchMode: this.stretcher.mode, + videoAlignment: this.videoAlignment + } + ) + }], 'restore-ar': [{ function: () => this.restore() }]