-
Notifications
You must be signed in to change notification settings - Fork 401
feat: auto retry with only TURN-TLS if UDP connects but fails DTLS #5080
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
a96f7db
65a6f22
40324a3
4cab82a
7f1da05
750d59b
15584fb
165657c
1997fc5
c177f22
599c07b
589e8fd
b19187c
9be95d4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -142,6 +142,7 @@ Media.createMediaConnection = ( | |
| enableExtmap?: boolean; | ||
| turnServerInfo?: TurnServerInfo; | ||
| bundlePolicy?: BundlePolicy; | ||
| iceTransportPolicy?: RTCIceTransportPolicy; | ||
| iceCandidatesTimeout?: number; | ||
| disableAudioMainDtx?: boolean; | ||
| enableAudioTwcc?: boolean; | ||
|
|
@@ -157,6 +158,7 @@ Media.createMediaConnection = ( | |
| enableExtmap, | ||
| turnServerInfo, | ||
| bundlePolicy, | ||
| iceTransportPolicy, | ||
| iceCandidatesTimeout, | ||
| disableAudioMainDtx, | ||
| enableAudioTwcc, | ||
|
|
@@ -167,7 +169,7 @@ Media.createMediaConnection = ( | |
| const iceServers = []; | ||
|
|
||
| // we might not have any TURN server if TURN discovery failed or wasn't done or we land on a video mesh node | ||
| if (turnServerInfo?.urls.length > 0) { | ||
| if (turnServerInfo && turnServerInfo.urls.length > 0) { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 👍🏻
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. q: why not turnServerInfo?.urls?.length > 0 ?
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. if I remove |
||
| // TURN-TLS server | ||
| iceServers.push({ | ||
| urls: turnServerInfo.urls, | ||
|
|
@@ -187,6 +189,10 @@ Media.createMediaConnection = ( | |
| config.bundlePolicy = bundlePolicy; | ||
| } | ||
|
|
||
| if (iceTransportPolicy) { | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nitpick: I'd love a comment on here for iceTransportPolicy, i.e., what it is, since this is a top level and we're adding a new config value.
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the type is clear that it's a browser level thing - |
||
| config.iceTransportPolicy = iceTransportPolicy; | ||
|
marcin-bazyl marked this conversation as resolved.
|
||
| } | ||
|
|
||
| if (disableAudioMainDtx !== undefined) { | ||
| config.disableAudioMainDtx = disableAudioMainDtx; | ||
| } | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.