mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-26 18:56:39 +00:00
Remove getCandidatesUpfront (#25399)
This commit is contained in:
parent
60d457c3d9
commit
a7a8c25d24
@ -201,25 +201,6 @@ class HaWebRtcPlayer extends LitElement {
|
|||||||
|
|
||||||
let candidates = "";
|
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) {
|
while (this._candidatesList.length) {
|
||||||
const candidate = this._candidatesList.pop();
|
const candidate = this._candidatesList.pop();
|
||||||
if (candidate) {
|
if (candidate) {
|
||||||
|
@ -190,7 +190,6 @@ export const fetchCameraCapabilities = async (
|
|||||||
export interface WebRTCClientConfiguration {
|
export interface WebRTCClientConfiguration {
|
||||||
configuration: RTCConfiguration;
|
configuration: RTCConfiguration;
|
||||||
dataChannel?: string;
|
dataChannel?: string;
|
||||||
getCandidatesUpfront: boolean;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export const fetchWebRtcClientConfiguration = async (
|
export const fetchWebRtcClientConfiguration = async (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user