Commit Graph
48 Commits
Author SHA1 Message Date
David Baker 2c1692bd4f Always publish microphone track when joining 2023-09-08 17:22:02 +01:00
David Baker b256755a0d Don't treat empty object as a valid sfu config
This was causing an extra reconnect cycle when the call was first
joined because it thought the previous SFU config was valid. This was
probably causing some client to fail to connect at all.
2023-08-31 09:44:23 +01:00
David Baker b5626dd97c Merge remote-tracking branch 'origin/livekit' into dbkr/matrixrtcsession 2023-08-30 17:25:00 +01:00
David Baker 3a0c895b7a Fix e2ee audio in Firefox
Pull in changes for livekit and disable RED as per comment.
2023-08-30 17:17:45 +01:00
David Baker 4cd274b91e Manually disconnect & reconnect the livekit call if our focus changes
Without breaking the 'disconnected' screen
2023-08-29 12:45:34 +01:00
David Baker 918736e758 Removed now unused useGroupCall & OpenIDLoader 2023-08-23 10:06:08 +01:00
David Baker e39d00154d More hacking on rtcsession 2023-08-18 09:03:21 +01:00
Robin Townsend e04d3f7c8d Fix camera light regression
By avoiding a method call that was accidentally causing LiveKit to try to publish tracks before the SFU connection was established, resulting in an unclosed stream.
2023-08-04 13:15:24 -04:00
Robin Townsend 99ce5064f5 Fix multiple issues with device settings
To track media devices, we were previously relying on a combination of LiveKit's useMediaDeviceSelect hook, and an object called UserChoices. Device settings should be accessible from outside a call, but the latter hook should only be used with a room or set of preview tracks, so it couldn't be raised to the app's top level. I also felt that the UserChoices code was hard to follow due to lack of clear ownership of the object.

To bring clarity to media device handling and allow device settings to be shown outside a call, I refactored these things into a single MediaDevicesContext which is instantiated at the top level of the app. Then, I had to manually sync LiveKit's device state with whatever is present in the context. This refactoring ended up fixing a couple other bugs with device handling along the way.
2023-08-03 10:17:00 -04:00
Šimon Brandner f7645ab432 Merge remote-tracking branch 'upstream/livekit' into SimonBrandner/feat/e2ee
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2023-07-25 16:00:12 +02:00
Šimon Brandner 7c5f07b498 Add a comment
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2023-07-25 15:49:59 +02:00
Šimon Brandner 8ee0e207bd Automatically mute the user, if there already are more than 8 participants
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2023-07-24 12:06:51 +02:00
David Baker 4eb9326bd2 Enable debug logging
Fixes https://github.com/vector-im/element-call/issues/1267
2023-07-17 19:33:29 +01:00
Šimon Brandner 4193629c2c Add E2EE password prompt
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2023-07-17 16:53:58 +02:00
David Baker be340ca4e4 Add more logs to JWT service code 2023-07-14 18:42:31 +01:00
David Baker e264a71d1e Merge v0.4.2 hotfixes 2023-07-12 17:57:54 +01:00
Šimon Brandner 8946af8f4e Hack e2ee in
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2023-07-12 17:52:14 +02:00
Daniel AbramovandGitHub eab2bc8ab5 Merge pull request #1173 from vector-im/lint-fixes
Enable stricter lints
2023-07-12 17:18:33 +02:00
David Baker 8754651f5c Spell SFU correctly 2023-07-11 16:49:29 +01:00
Daniel Abramov 0105162ffa Enable strict lints
An attempt to fix https://github.com/vector-im/element-call/issues/1132
2023-07-11 16:02:58 +01:00
Šimon Brandner 0e8aa9dea6 Adjust simulcast options for video
Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
2023-07-10 11:55:12 +02:00
Daniel AbramovandGitHub 5c5aa27a20 Merge pull request #1207 from vector-im/release-preparations
Release preparations
2023-07-07 16:10:33 +02:00
Daniel Abramov 19a2494b9b Fix screen-sharing on Chrome
- Disable temporal layers
- Make 30 fps screen-sharing
2023-07-07 14:27:01 +01:00
TimoandGitHub 9be9250124 Combined permission request with newer livekit sdk version (#1200)
---------

Signed-off-by: Timo K <toger5@hotmail.de>
2023-07-07 14:41:29 +02:00
David BakerandGitHub 130b70756a Revert "Revert "Support for getting SFU config using OIDC"" 2023-07-05 13:12:37 +01:00
David BakerandGitHub 29553c1151 Revert "Support for getting SFU config using OIDC" 2023-07-04 19:21:35 +01:00
David BakerandGitHub c9f57cb2a3 Merge pull request #1166 from vector-im/dbkr/openid
Support for getting SFU config using OIDC
2023-07-04 19:05:21 +01:00
fc7a7b1799 Use union type for openidloader state
Co-authored-by: Daniel Abramov <inetcrack2@gmail.com>
2023-07-04 15:44:55 +01:00
David Baker c5f3941ad7 Unused import 2023-07-03 17:14:46 +01:00
David Baker 5305a287fe Briefer syntax 2023-07-03 17:10:36 +01:00
David Baker edcf9f3fd5 Use the repsonse,.ok rather than manual status code check 2023-07-03 17:07:00 +01:00
David Baker f64bd0ab25 Unused import 2023-07-03 17:06:22 +01:00
David Baker 4524b418ff Merge remote-tracking branch 'origin/livekit' into dbkr/openid 2023-07-03 17:03:58 +01:00
David Baker f2eabec382 Be stricter with what is passed in to the openid components 2023-07-03 16:21:56 +01:00
David Baker 9e95e8b5a7 User ID field no longer neccessary 2023-07-03 13:00:25 +01:00
Daniel Abramov 81734b852c Add simulcast layers for the screen sharing 2023-07-03 11:26:43 +01:00
Robin Townsend 17450b4531 Fix big grid crashing due to missing React import
by fixing the cause rather than the symptom: this upgrades the code to use the new, recommended JSX transform mode of React 17+, which no longer requires you to import React manually just to write JSX.
2023-06-30 18:21:18 -04:00
David Baker 23b8a61e7a Provide sfu config via context 2023-06-30 18:12:58 +01:00
David Baker 4efd88905d Move ...rest param 2023-06-30 16:13:02 +01:00
David Baker 008bb4f41d Also the other files 2023-06-28 16:42:51 +01:00
David Baker 8996aa772c Initial support for getting SFO config using OIDC
* Change `jwt_service_url` to `livekit_service_url`
 * Make it a POST so we can send the openID token sensibly
 * Get an OIDC token & pass it with the request
 * Read the SFU URL from there too

and convert the auth server accordingly, althugh with no actual OIDC
support yet, it just issues tokens blindly just as before and ignores
the openid token completely.

We'll need to update configs & the JWT service before merging this.
2023-06-28 16:35:56 +01:00
David Baker 2caaa15520 Fix username / displayname naming confusion 2023-06-27 12:23:19 +01:00
5b4787cef6 LiveKit Device Usage Refactoring (#1120)
Signed-off-by: Timo K <toger5@hotmail.de>
Co-authored-by: Timo K <toger5@hotmail.de>
2023-06-16 18:07:13 +02:00
Timo K 86ab2b4287 tinyFixes
Signed-off-by: Timo K <toger5@hotmail.de>
2023-06-15 11:40:16 +02:00
Timo K a01e62d9ed revert of combined video+audio permission request
Signed-off-by: Timo K <toger5@hotmail.de>
2023-06-15 11:36:39 +02:00
TimoandGitHub 41f2728724 Device from lobby to call (#1110)
* respect mute state set in lobby for call

Signed-off-by: Timo K <toger5@hotmail.de>

* move device from lobby to call

Signed-off-by: Timo K <toger5@hotmail.de>

* save device in local storage

Signed-off-by: Timo K <toger5@hotmail.de>

* local storage + fixes

Signed-off-by: Timo K <toger5@hotmail.de>

* device permissions

Signed-off-by: Timo K <toger5@hotmail.de>

---------

Signed-off-by: Timo K <toger5@hotmail.de>
2023-06-14 19:20:53 +02:00
Daniel Abramov 048dce05c3 Explicitly configure options for the LiveKit room 2023-06-09 19:04:46 +02:00
Daniel Abramov 28fe813b76 Move LiveKit module into its own directory 2023-06-09 18:31:29 +02:00