Some rabbit nitpick fixes 2

This commit is contained in:
DatCaptainHorse
2025-11-07 10:01:22 +02:00
parent 8d5895fc5e
commit 9bee9d4935
3 changed files with 22 additions and 10 deletions

View File

@@ -123,8 +123,6 @@ export class WebRTCStream {
} else {
iceHolder.push(cand);
}
} else {
iceHolder.push(cand);
}
});
@@ -143,6 +141,14 @@ export class WebRTCStream {
sdp: data.sdp.sdp,
type: data.sdp.type as RTCSdpType,
});
// Add held candidates
iceHolder.forEach((candidate) => {
this._pc!.addIceCandidate(candidate).catch((err) => {
console.error("Error adding held ICE candidate:", err);
});
});
iceHolder = [];
// Create our answer
const answer = await this._pc!.createAnswer();
// Force stereo in Chromium browsers