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

Load focus information from well known and use client config only as a fallback. #2358

Merged
merged 19 commits into from
Jun 19, 2024

Conversation

toger5
Copy link
Contributor

@toger5 toger5 commented May 3, 2024

Instead of always requireig EC to configure a livekit service url we use the homeserver well-known to aquire the sfu to use.

Relies on: matrix-org/matrix-js-sdk#4195

Discussion:
If the homserver does not promote a service url in the well-known we start searching for one on the other homeservers involved in the room. (check user domains)
The reason for this is, that we currently cannot start nor join a call without knowing a sfu service url since we wont just copy over what others have set in their state event.
Even if taht would be possible we could run into a situation where all members with a set foci_active disconnect and only members without foci active are left which would break the call immediately.
So making it a requirement to have a active foci makes sense.
Hence always loading one via the room member list might be a solution

In the current version we have not activated the option to load from other room members.
We add Foci from (in the order listed here)

  • the current rtc session
  • the hs well-known
  • the config
  • DEACTIVATED from other room members homeserver well known.

Signed-off-by: Timo K [email protected]

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
src/rtcSessionHelpers.ts Outdated Show resolved Hide resolved
src/rtcSessionHelpers.ts Outdated Show resolved Hide resolved
src/rtcSessionHelpers.ts Outdated Show resolved Hide resolved
src/rtcSessionHelpers.ts Outdated Show resolved Hide resolved
src/rtcSessionHelpers.ts Outdated Show resolved Hide resolved
src/rtcSessionHelpers.ts Show resolved Hide resolved
src/rtcSessionHelpers.ts Outdated Show resolved Hide resolved
src/room/GroupCallView.tsx Outdated Show resolved Hide resolved
@toger5 toger5 force-pushed the toger5/sfu-wellKnown branch from 65c7f48 to d54966f Compare June 4, 2024 17:29
@toger5 toger5 force-pushed the toger5/sfu-wellKnown branch from d54966f to 4992f7b Compare June 4, 2024 17:36
@toger5 toger5 merged commit 812ae2c into livekit Jun 19, 2024
3 checks passed
@toger5 toger5 deleted the toger5/sfu-wellKnown branch June 19, 2024 14:42
mgcm pushed a commit to mgcm/element-call that referenced this pull request Aug 7, 2024
…a fallback. (element-hq#2358)

* Load focus information from well known and use client config only as a fallback.

Signed-off-by: Timo K <[email protected]>
Co-authored-by: Andrew Ferrazzutti <[email protected]>
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