Remove getCandidatesUpfront (#25399)

This commit is contained in:
Robert Resch 2025-05-12 14:55:39 +02:00 committed by GitHub
parent 60d457c3d9
commit a7a8c25d24
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 0 additions and 20 deletions

View File

@ -201,25 +201,6 @@ class HaWebRtcPlayer extends LitElement {
let candidates = "";
if (this._clientConfig?.getCandidatesUpfront) {
await new Promise<void>((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) {

View File

@ -190,7 +190,6 @@ export const fetchCameraCapabilities = async (
export interface WebRTCClientConfiguration {
configuration: RTCConfiguration;
dataChannel?: string;
getCandidatesUpfront: boolean;
}
export const fetchWebRtcClientConfiguration = async (