Repository navigation
Commit 3abcbd8
fix(sfu): viewer/subscriber must honor TURN relay + Force relay too
The host SFU connection passed rtcConfig (TURN iceServers + Force-relay
iceTransportPolicy), but the viewer/subscriber connection called
room.connect(url, token) with NO rtcConfig — so it ignored both the TURN
servers and the Force-relay toggle, went direct (srflx), and DTLS-timed-out
on restrictive NATs ("could not establish pc connection") even with Force
relay ON. Pass buildSfuRtcConfig(data.iceServers) on the viewer connect,
mirroring the host.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 7c8af55 commit 3abcbd8
1 file changed
Lines changed: 9 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
374 | 375 | | |
375 | 376 | | |
376 | 377 | | |
377 | | - | |
| 378 | + | |
378 | 379 | | |
379 | 380 | | |
380 | 381 | | |
| |||
477 | 478 | | |
478 | 479 | | |
479 | 480 | | |
480 | | - | |
481 | | - | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
482 | 488 | | |
483 | 489 | | |
484 | 490 | | |
| |||
0 commit comments