diff --git a/src/components/ha-web-rtc-player.ts b/src/components/ha-web-rtc-player.ts index e11cf5794e..7d9528f38a 100644 --- a/src/components/ha-web-rtc-player.ts +++ b/src/components/ha-web-rtc-player.ts @@ -201,25 +201,6 @@ class HaWebRtcPlayer extends LitElement { let candidates = ""; - if (this._clientConfig?.getCandidatesUpfront) { - await new Promise((resolve) => { - this._peerConnection!.onicegatheringstatechange = (ev: Event) => { - const iceGatheringState = (ev.target as RTCPeerConnection) - .iceGatheringState; - if (iceGatheringState === "complete") { - this._peerConnection!.onicegatheringstatechange = null; - resolve(); - } - - this._logEvent("Ice gathering state changed", iceGatheringState); - }; - }); - - if (!this._peerConnection || !this.entityid) { - return; - } - } - while (this._candidatesList.length) { const candidate = this._candidatesList.pop(); if (candidate) { diff --git a/src/data/camera.ts b/src/data/camera.ts index b8bf02d5de..397d9365fb 100644 --- a/src/data/camera.ts +++ b/src/data/camera.ts @@ -190,7 +190,6 @@ export const fetchCameraCapabilities = async ( export interface WebRTCClientConfiguration { configuration: RTCConfiguration; dataChannel?: string; - getCandidatesUpfront: boolean; } export const fetchWebRtcClientConfiguration = async (