Skip to content
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

Change ICE fallback server and make fallback opt-in #1015

Merged
merged 6 commits into from
Aug 15, 2019

Conversation

jryans
Copy link
Collaborator

@jryans jryans commented Aug 13, 2019

This changes the STUN fallback server from a Google server to one hosted at
turn.matrix.org. This also changes the ICE server fallback to be disabled by default. The SDK consumer will receive a new event in case the homeserver has no ICE servers of its own,
and can prompt the user to agree to the fallback if desired.

Part of element-hq/element-web#10173
Used by matrix-org/matrix-react-sdk#3309

There's no longer a need to translate ICE server objects for Firefox, as it
supports the `urls` array since version 37.
This changes the STUN fallback server from a Google server to one hosted at
`turn.matrix.org`.

Part of element-hq/element-web#10173
This changes the ICE server fallback to be disabled by default. The SDK consumer
will receive a new event in case the homeserver has no ICE servers of its own,
and can prompt the user to agree to the fallback if desired.

Part of element-hq/element-web#10173
@jryans jryans requested a review from a team August 13, 2019 14:55
@turt2live turt2live changed the title Chagne ICE fallback server and make fallback opt-in Change ICE fallback server and make fallback opt-in Aug 13, 2019
Copy link
Member

@turt2live turt2live left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is fine. A bit unfortunate that it causes clients to prompt on startup though :(

(imo it should only show up when you make a call, to avoid throwing dialogs at all the people who haven't bothered to set up a TURN server because they don't make calls)

@jryans
Copy link
Collaborator Author

jryans commented Aug 13, 2019

(imo it should only show up when you make a call, to avoid throwing dialogs at all the people who haven't bothered to set up a TURN server because they don't make calls)

I also agree it is unfortunate, so you may wish to shout about this... I also don't make calls or intend to make them in future... The reasoning for showing on session start is so that we have prearranged permission for incoming calls. It's not exactly clear if that's a strong enough reason to justify annoying every user on session start. 😓

@turt2live
Copy link
Member

I've posted my rant at element-hq/element-web#10546

This adds a new client init option to configure whether an ICE fallback server
is allowed to be used.
The intended flow has changed so we prompt about this case in context of making
a call, so this event is no longer needed.
@jryans jryans requested a review from turt2live August 14, 2019 14:09
@jryans jryans merged commit 90cac8a into develop Aug 15, 2019
@t3chguy t3chguy deleted the jryans/stun-turn-fallback branch May 10, 2022 14:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants