From c65ee3f0f23e68860c0914ba43b805f9dea136b3 Mon Sep 17 00:00:00 2001 From: Dermot Duffy Date: Sat, 8 Mar 2025 20:27:23 -0800 Subject: [PATCH] fix: Avoid inadvertently resetting the `go2rtc` connection in some circumstances (#1953) - Closes #1914 --- src/components/live/providers/go2rtc/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/live/providers/go2rtc/index.ts b/src/components/live/providers/go2rtc/index.ts index 46a3b863..2284627c 100644 --- a/src/components/live/providers/go2rtc/index.ts +++ b/src/components/live/providers/go2rtc/index.ts @@ -142,7 +142,7 @@ export class AdvancedCameraCardGo2RTC extends LitElement implements MediaPlayer if ( this._player && changedProps.has('microphoneState') && - this._player?.microphoneStream !== this.microphoneState?.stream + this._player.microphoneStream !== (this.microphoneState?.stream ?? null) ) { this._player.microphoneStream = this.microphoneState?.stream ?? null;