mirror of
https://github.com/xtr-dev/rondevu-client.git
synced 2025-12-10 02:43:25 +00:00
Fix ICE candidate handling in connection manager
- Remove hardcoded sdpMLineIndex and sdpMid values - Create RTCIceCandidate properly from candidate string - Let WebRTC parse candidate metadata automatically - Fixes ICE connection failures 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -246,11 +246,11 @@ export class RondevuConnection {
|
||||
);
|
||||
|
||||
for (const candidate of candidates) {
|
||||
await this.pc.addIceCandidate({
|
||||
candidate: candidate.candidate,
|
||||
sdpMLineIndex: 0,
|
||||
sdpMid: '0'
|
||||
});
|
||||
// Create ICE candidate from candidate string only
|
||||
// Don't hardcode sdpMLineIndex/sdpMid - let WebRTC parse from candidate string
|
||||
await this.pc.addIceCandidate(new RTCIceCandidate({
|
||||
candidate: candidate.candidate
|
||||
}));
|
||||
this.lastIceTimestamp = candidate.createdAt;
|
||||
}
|
||||
} catch (err) {
|
||||
|
||||
Reference in New Issue
Block a user