fix: Avoid inadvertently resetting the go2rtc connection in some circumstances (#1953)
- Closes #1914
This commit is contained in:
@@ -142,7 +142,7 @@ export class AdvancedCameraCardGo2RTC extends LitElement implements MediaPlayer
|
|||||||
if (
|
if (
|
||||||
this._player &&
|
this._player &&
|
||||||
changedProps.has('microphoneState') &&
|
changedProps.has('microphoneState') &&
|
||||||
this._player?.microphoneStream !== this.microphoneState?.stream
|
this._player.microphoneStream !== (this.microphoneState?.stream ?? null)
|
||||||
) {
|
) {
|
||||||
this._player.microphoneStream = this.microphoneState?.stream ?? null;
|
this._player.microphoneStream = this.microphoneState?.stream ?? null;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user