From e167002a5a4d8261688c5ab94e85311313076a18 Mon Sep 17 00:00:00 2001 From: Yohan Totting Date: Fri, 11 Oct 2024 20:57:15 +0700 Subject: [PATCH] fix: avoid send video size with zero value --- packages/room/observer/video-observer.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/room/observer/video-observer.js b/packages/room/observer/video-observer.js index f951aed..97b8861 100644 --- a/packages/room/observer/video-observer.js +++ b/packages/room/observer/video-observer.js @@ -93,6 +93,10 @@ export class VideoObserver { * @returns {void} */ #onVideoSizeChanged(id, width, height) { + if (width === 0 || height === 0) { + return + } + if (id in this.#delayedReports) { clearTimeout(this.#delayedReports[id])