Commit Graph
100 Commits
Author SHA1 Message Date
David Baker 83fd9a49ab Merge remote-tracking branch 'origin/livekit' into dbkr/matrixrtcsession 2023-09-06 09:01:58 +01:00
David Baker 3e72604391 Remove unintentional change 2023-09-05 17:38:43 +01:00
David Baker 973d396249 Remove extra device request on the video preview page
As per comment, livekit mutates the object that's passed in, so
we ended up re-requesting the devices in the next render because we
effectively passed in different options.
2023-09-05 17:34:55 +01:00
David Baker 0dbd3c2a58 Merge remote-tracking branch 'origin/livekit' into dbkr/matrixrtcsession 2023-09-01 15:09:24 +01:00
David Baker fe4d42f4d0 Update js-sdk 2023-08-31 14:43:53 +01:00
David Baker 981a29ebf7 yarn 2023-08-31 14:38:31 +01:00
David Baker dd9397d921 Merge remote-tracking branch 'origin/livekit' into dbkr/matrixrtcsession 2023-08-31 14:38:05 +01:00
David Baker 0535a35a1c Remove unused memberships prop 2023-08-31 14:36:54 +01:00
David Baker 9d6d5a16e7 Merge remote-tracking branch 'origin/livekit' into dbkr/matrixrtcsession 2023-08-31 10:48:54 +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 923f081d74 Merge remote-tracking branch 'origin/livekit' into dbkr/matrixrtcsession 2023-08-30 10:04:43 +01:00
David Baker 73b505987d Unpin livekit versions
and upgrade to latest
2023-08-30 09:50:12 +01:00
David Baker 192c3295c9 Update js-sdk 2023-08-29 14:19:08 +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 22533fc408 Merge remote-tracking branch 'origin/livekit' into dbkr/matrixrtcsession 2023-08-25 14:40:52 +01:00
David Baker e4e35eecfd Use Matrix room membership to look up room member
Rather than the matrixRTC memberships. We're essentially trusting
LiveKit's view of weho is connected here, so we may as well include
the real names of anyone we don't think is a matrixRTC participant,
for whatever reason.
2023-08-25 13:19:23 +01:00
David Baker dc80a7e350 Log ghosts
and remove unsused code
2023-08-23 15:04:41 +01:00
David Baker 1955765cfd Bump js-sdk 2023-08-23 14:03:38 +01:00
David Baker af5e679089 i18n 2023-08-23 10:15:29 +01:00
David Baker c516207199 Remove matrix-widget-api as a dep & remove livekit stuff from widget init
We'll always have matrix-widget-api as a dep through js-sdk so also
specifyin it ourselves just means we'll end up using a different version
when the js-sdk upgrade their copy and get wierd errors. We could add a
peerDependency if we really felt the need?
2023-08-23 10:12:09 +01:00
David Baker 918736e758 Removed now unused useGroupCall & OpenIDLoader 2023-08-23 10:06:08 +01:00
David Baker 095753c6a0 i18n 2023-08-23 10:03:05 +01:00
David Baker ee77820e5b Use latest js-sdk branch 2023-08-23 09:59:02 +01:00
David Baker 7a197a2700 Use js-sdk branch 2023-08-18 14:14:24 +01:00
David Baker 274349f2e2 Use the right sfu config hook 2023-08-18 10:20:14 +01:00
David Baker e39d00154d More hacking on rtcsession 2023-08-18 09:03:21 +01:00
David Baker 1716bd4418 Merge remote-tracking branch 'origin/livekit' into dbkr/matrixrtcsession 2023-08-16 18:53:00 +01:00
David Baker 4242d45ba2 WIP refactor for removing m.call events 2023-08-16 18:41:27 +01:00
David Baker 96f264db87 Put the 'v' back on the docker tag for release versions 2023-08-11 09:24:11 +01:00
David Baker ba1ebad31e Set version to commit sha for dev builds 2023-08-11 09:04:38 +01:00
David Baker ec9635eb61 Fix main branch image publishing, try 2
* Swap out the 3rd party upload-asset which just seems to be broken
   for the actual github one which does everything we need here.
 * Update version of metadata action to one that supports is_default_branch
2023-08-08 14:14:12 +01:00
David Baker 188de8dc85 GHA doesn't support ?? 2023-08-08 11:59:06 +01:00
David Baker 5490917d98 Fix tarball name for head branch builds 2023-08-08 11:51:21 +01:00
David Baker d66f045743 Merge remote-tracking branch 'origin/livekit' into dbkr/react_to_livekit_disconnect 2023-07-24 21:35:09 +01:00
David Baker 8e6380db0b Fix logs component states
Also just display text when sending which makes the button jump around
a bit but avoids hardcoding the width
2023-07-24 21:33:13 +01:00
David Baker 9fdafaf395 Add a useEventEmitterThree for livekit's event emitters and use it 2023-07-24 21:03:56 +01:00
David Baker 4643e167ce i18n 2023-07-21 20:08:46 +01:00
David Baker 47365f2433 Merge branch 'toger5/connectionLostBanner' into connectionlostbanner_lk
NB. I had to more or less rewrite this as it had been refactored in the livekit branch.
2023-07-21 20:03:37 +01:00
David Baker b44ab47a1a Report more errors to sentry
Mostly from ErrorView
2023-07-21 11:58:21 +01:00
David Baker e37783ad7e i18n 2023-07-20 18:25:54 +01:00
David Baker 4071c9029c Track call disconnections 2023-07-20 18:22:17 +01:00
David Baker 1675770196 Add disconnected screen for when livekit disconnects from the call
eg. when it gives up retrying to connect

Also refactors the rageshake button into a dedicated component that
we can just put wherever we want.

Fixes https://github.com/vector-im/element-call/issues/1268
2023-07-20 17:55:50 +01:00
David Baker 50ba23b7ea Revert unintentional change 2023-07-18 16:59:51 +01: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
David Baker c15b2a62d5 Fix jsdoc 2023-07-17 19:22:22 +01:00
David Baker f28cf0ce69 Fix embedded mode
This was trying to get the room alias, which causes the config to be
read. We don't need the room alias here though, so pass the flag to
not return it.
2023-07-17 19:16:28 +01:00
David Baker d612c6a14c Remove redundant server url from readme example 2023-07-17 12:41:46 +01:00
David Baker be340ca4e4 Add more logs to JWT service code 2023-07-14 18:42:31 +01:00
David Baker c99a400dd1 Prettier 2023-07-13 09:58:56 +01:00
David Baker 4a4c66caf2 Update README with new dev backend instructions. 2023-07-13 09:55:33 +01:00
David Baker e264a71d1e Merge v0.4.2 hotfixes 2023-07-12 17:57:54 +01:00
David Baker d081dc0013 Update JWT service URL 2023-07-12 15:01:16 +01:00
David Baker 8754651f5c Spell SFU correctly 2023-07-11 16:49:29 +01:00
David Baker 68635313d4 Bump js-sdk for getOpenIdToken() in embedded mode
For https://github.com/matrix-org/matrix-js-sdk/pull/3571
2023-07-11 13:24:10 +01:00
David Baker f6383fb4b5 Add comment 2023-07-10 16:04:06 +01:00
David Baker 4c6535243d Fix types 2023-07-10 15:54:04 +01:00
David Baker ca0e843d80 Add the livekit URL in matroyshka mode
This is a bit of a hack, as commented. The way to make it less of a
hack is there too.

Fixes embedded mode, although users will get a permission prompt
without https://github.com/matrix-org/matrix-react-sdk/pull/11209.

Fixes https://github.com/vector-im/element-call/issues/1201
2023-07-10 13:36:07 +01:00
David Baker aab08d2bf1 Remove trailing slash from livekit service URL 2023-07-05 13:45:06 +01:00
David Baker 41371de506 New livekit service URL 2023-07-05 13:33:33 +01:00
David Baker c73c4d171d Fix netlify deployment
Turns out the create deployment stateb really needs the env,
even though it's empty.
2023-07-05 13:22:57 +01:00
David Baker fe96c4a455 Update the livekit branch name in more places
Fixes the CI to get the config from the right place.

Also removes reference to an env that's already been deleted.
2023-07-04 20:25:51 +01:00
David Baker 6117b42a4e Merge remote-tracking branch 'origin/livekit' into dbkr/docker-use-container 2023-07-04 19:06:40 +01:00
David Baker be89fb7dd9 Revert changes to auth server code 2023-07-04 19:01:11 +01:00
David Baker 6c8b96ed3d Use prebuilt image for docker compose 2023-07-04 18:57:35 +01:00
David Baker 6ca5b46df7 Update config to deployed lk jwt service 2023-07-03 21:43:11 +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
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 4548c1af23 Merge remote-tracking branch 'origin/livekit' into dbkr/openid 2023-06-30 10:11:53 +01:00
David Baker 008bb4f41d Also the other files 2023-06-28 16:42:51 +01:00
David Baker a0b342069d Merge remote-tracking branch 'origin/livekit' into dbkr/openid 2023-06-28 16:40:59 +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
David Baker d57bb5bb76 Fix branch names in CI 2023-06-26 13:37:31 +01:00
David Baker aed1548929 Port netlifgy-livekit workflow over to livekit branch
Now livekit is the new default branch
2023-06-26 13:21:08 +01:00
David Baker 30e1034fba Use new-js-sdk flag to disable the actual calling of group calls
In favour of using livekit
2023-06-14 12:13:55 +01:00
David Baker 403ee79d61 Include org.matrix.call events in sent events for OTel 2023-04-27 18:01:40 +01:00
David Baker ecc3693c47 Remove accidental log line 2023-04-25 10:32:36 +01:00
David Baker 7153ead8cb Remove the console exporter
I'm not sure how this got left in, presumably it was not intended.
2023-04-24 19:52:56 +01:00
David Baker 32476571fb End spans when calls are replaced by a different call 2023-04-24 17:57:05 +01:00
David Baker 4459eaeb9d Fix audio mute on window blur
https://github.com/vector-im/element-call/pull/1015/files missed a
change of spacebarHeld to a ref.
2023-04-21 10:18:43 +01:00
David Baker f5e2161a9e Add the event name to the rageshake span processor export 2023-04-20 17:18:06 +01:00
David Baker d1aa34b2e0 Use the native ResizeObserver where available
My dev env suddenly, with no apparent prompt, went into a mode where
it wouldn't display nay video tiles which was because they were 0x0
in the top left corner, which in turn was because the ResizeObserver
was never returning the actual bounds of the video tile container.

As per comment, this uses the native impl in preference to the ponyfill,
although in practice it looks like all our target browsers should support
it, so perhaps we could just remove the ponyfill entirely.
2023-04-20 13:39:25 +01:00
David Baker 1dd70ea22d Add .gz extension to to traces.json
As we are sending a gzipped file. We could make the rageshake server
look for this and gunzip it, but either way this seems like as good a
way as any to signal that the file is gzipped.
2023-04-20 09:55:57 +01:00
David Baker 0de1aa74ee Use microseconds in the rageshake exporter
Fixes times being off by a factor of 1000
2023-04-18 12:48:34 +01:00
David Baker 9442b314b2 Fix PostHog in embedded mode
Embedded mode has a differtent path to join the call and we missed
changing the groupCall.enter() function for the wrapper that does
analytics.
2023-04-17 18:47:46 +01:00
David Baker 2b71a6c4f4 Add tiny release notes script 2023-04-06 11:12:13 +01:00
David Baker caea22fa89 Remove the recheck callback since it isn't necessary for now 2023-04-05 19:00:07 +01:00
David Baker 88f3b30040 Allow different OpenTelemetry collectors to be enabled/disabled
Always enable OpenTelemetry, but conditionally enable the OTLP
exporter, as per comment.

Fixes https://github.com/vector-im/element-call/issues/987
2023-04-05 18:21:29 +01:00
David Baker fec299ab20 Skip whole block if no otel instance 2023-04-05 15:11:51 +01:00
David Baker 5e4aa53997 Don't call posthog before its initialised 2023-04-05 15:00:14 +01:00
David Baker 0dcaa90650 Fix exception when loading PostHog
PostHog was expecting the matrix client object to be initialised at
the point it ran its setup, which wasn't the case. Check to see if it's
there on login and add an onLoginStatusChanged hook that to re-check.

Also make a few methods private that didn't need to be public.

Also fix a few instances where the OpenTelemetry group call tried to
report metrics using a tracer which didn't exist anymore, if the user
disabled analytics and then joined the same call again.
2023-04-05 13:06:55 +01:00