David Zhao
3f59d0dd9e
add mock for testing region pins with API ( #4691 )
...
we'll ensure that clients support redirection when making an API
to an unpinned region
2026-07-19 21:12:35 -07:00
David Zhao
0bc73fd0da
added mocking function for SIP dialing methods ( #4642 )
2026-07-04 12:47:02 -07:00
David Zhao
00348c1299
simpler mock protocol ( #4641 )
...
enabling us to build a comprehensive set of API tests for our clients
2026-07-03 04:17:59 -07:00
David Zhao
ad76898f03
support auth checks with mock server ( #4629 )
...
* support auth checks with mock server
* simplify unit tests
2026-06-28 23:19:05 -07:00
David Zhao
bfb75d1fc3
feat: mock API server for testing server SDKs ( #4627 )
...
* feat: mock API server for testing server SDKs
* fixed lint
2026-06-28 09:28:18 +02:00
David Zhao
46c4309554
fix goreleaser workflow, version 1.13.1 ( #4577 )
2026-06-08 16:15:09 -07:00
David Zhao
e0815be27d
chore: improve docker test shutdown reliability ( #4576 )
2026-06-08 08:27:15 -07:00
David Zhao
4b3856125c
chore: pin GH commits and switch to golangci-lint ( #4444 )
...
* chore: pin GH commits
* switch to golangci-lint-action
* fix lint issues
2026-04-11 13:04:22 -07:00
David Zhao
72c7e65c25
chore: log API key during worker registration ( #4428 )
2026-04-03 09:48:42 -07:00
David Zhao
88facc0235
adds a test to ensure agent worker errors cause disconnection ( #4273 )
2026-01-31 14:19:19 -08:00
David Zhao
5f561b4ff1
Include agent_name as a participant attribute ( #3914 )
2025-09-10 21:29:55 -07:00
David Zhao
bfe98eaa09
fix: ensure the participant kind is set on refresh tokens ( #3881 )
2025-08-26 10:25:25 -07:00
David Zhao
b0ab95baf7
warn about credentials when used in tokens ( #3705 )
...
* warn about credentials when used in tokens
* go mod update
2025-06-06 22:46:23 -07:00
David Zhao
09dede358f
version bump v1.9.0 ( #3698 )
2025-06-04 23:42:57 -07:00
David Zhao
154b4d26b7
version bump to 1.8.4 ( #3479 )
2025-03-01 20:10:56 -08:00
David Zhao
1c69a9eeed
Dependent participants should not trigger count towards FirstJoinedAt ( #3448 )
...
* Dependent participants should not trigger count towards FirstJoinedAt
According to the API, empty timeout should be honored as long as no
independent participant joins the room. If we counted Agents and Egress
as part of FirstJoinedAt, it would have the side effect of using
departureTimeout instead of emptyTimeout for idle calculations.
* use Room logger
2025-02-20 00:57:40 -06:00
David Zhao
68dd877752
update readme ( #3374 )
2025-01-30 11:17:27 -06:00
David Zhao
1825ea81f0
fire TrackSubscribed event only when subscriber is visible ( #3378 )
...
TrackSubscribed is meant to give publishers an indication when the subscriber
is ready to receive its audio. When there are hidden recorders in the room,
we do not want them to trigger this event.
2025-01-30 10:48:52 -06:00
David Zhao
30669722c3
fix: pass RoomConfig along when creating a new dispatch rule ( #3367 )
2025-01-26 23:36:42 -06:00
David Zhao
5de7445d17
Reduce frequency of renovate updates for non-essential deps ( #3346 )
2025-01-19 18:30:50 -06:00
David Zhao
4016e3dc5a
version bump to 1.8.3 ( #3312 )
...
1.8.2 was botched as well due to a bad tag
2025-01-07 00:08:05 -06:00
David Zhao
ca767a988e
bump to v1.8.2 ( #3310 )
2025-01-06 19:55:24 -08:00
David Zhao
dd87f1ccc4
1.8.1 release ( #3301 )
...
* 1.8.1 release
* remove entries
2025-01-03 00:31:56 -06:00
David Zhao
ac43e8a640
fix completed job status updates causing workers to reconnect ( #3294 )
2024-12-31 01:57:46 -06:00
David Zhao
6acb4bbd61
add room/participant to logger context for SIP APIs ( #3290 )
2024-12-26 00:23:21 -06:00
David Zhao
83d26c1aaa
Fixed broken links to sections of docs ( #3193 )
2024-11-21 23:14:00 -06:00
David Zhao
84cb14695f
Fix incorrect computation of SecondsSinceNodeStatsUpdate ( #3172 )
...
Stats.UpdatedAt is in seconds, but we were loading as nanosecs
2024-11-12 01:13:08 -06:00
David Zhao and Paul Wells
dd7cd7eafc
Handle room configuration that's set in the grant itself ( #3120 )
...
* Handle room configuration that's set in the grant itself
* ensure refresh token contains updates
* deps
* dep
---------
Co-authored-by: Paul Wells <paulwe@gmail.com >
2024-10-21 23:31:12 -07:00
David Zhao
3e7185f264
chore: add check to skip launching TrackEgress for Egress participants ( #3125 )
...
Egress participants don't publish, so there is no functionality change
2024-10-21 20:47:41 -07:00
David Zhao
c04c703125
version bump 1.8.0 ( #3114 )
2024-10-18 21:41:57 -07:00
David Zhao
33098337fc
Support for attributes in initial agent token ( #3097 )
2024-10-14 22:45:10 -07:00
David Zhao
c41913225d
Log fields in SIP service ( #3096 )
2024-10-14 16:00:15 -07:00
David Zhao and Paul Wells
2d6aa049c9
Improve agent job assignment logging ( #3090 )
...
* Improve agent job assignment logging
* add more agent logging
---------
Co-authored-by: Paul Wells <paulwe@gmail.com >
2024-10-13 00:56:51 -07:00
David Zhao
50576b503e
Handle trailing slashes in URL ( #2988 )
...
When a user includes a trailing slash in LIVEKIT_URL, it would produce
double slashes in the path, i.e. `https://myhost.livekit.cloud//twirp/RoomService.ListRooms `
Currently the server will send a 302 MOVED response, causing Twirp requests to fail.
We now remove the double slash in front within the middleware.
2024-09-07 11:30:24 -07:00
David Zhao
91cb4369ef
Standardize twirp hooks during server init ( #2959 )
2024-08-26 00:53:13 -07:00
David Zhao
28f797786b
Version bump to 1.7.2 ( #2924 )
2024-08-11 21:36:13 -07:00
David Zhao
4c2813bbe8
v1.7.1 release notes ( #2922 )
2024-08-10 22:23:59 -07:00
David Zhao
815ba1933b
update readme ( #2905 )
2024-08-03 18:12:24 -07:00
David Zhao
b1fbca066f
Send the correct room closed reason to clients ( #2901 )
...
* Send the correct room closed reason to clients
* update go mod
2024-08-01 19:40:06 -07:00
David Zhao
ddee5d012f
version bump 1.7.0 ( #2814 )
2024-06-25 01:00:59 -07:00
David Zhao
7a774cc82a
Support for participant attributes ( #2806 )
...
* Support for participant attributes
* move metadata setters to LocalParticipant
* address feedback
* forward error
* update go mod
* update attributes first
2024-06-19 23:14:19 -07:00
David Zhao
88a340202a
Update release workflow ( #2795 )
...
* Update release workflow
* rename
2024-06-15 19:55:16 -07:00
David Zhao
ecfc42c3f9
Version 1.6.2 ( #2794 )
2024-06-15 18:59:03 -07:00
David Zhao
ecf1175832
Generate and send uuid with analytics ( #2790 )
...
* Generate and send uuid with analytics
* go mod
2024-06-13 23:00:50 -07:00
David Zhao
b99650aaf6
Send NodeID with analytics events ( #2749 )
2024-06-02 09:09:55 -07:00
David Zhao
37346774bb
Forward transcription data packets to the room ( #2687 )
2024-04-26 00:00:30 -07:00
David Zhao
eaaf44d2a2
v1.6.0 ( #2644 )
2024-04-10 22:44:40 -07:00
David Zhao
0712719c2f
Fix deadlock in IncrementalDispatcher ( #2632 )
2024-04-06 10:36:02 -07:00
David Zhao
f4314686d1
Improve Agent logging ( #2628 )
2024-04-05 20:32:29 -07:00
David Zhao
41b70ef555
Update Pion & SCTP to handle ZeroChecksum interop ( #2619 )
...
Details: https://github.com/pion/sctp/pull/327
2024-04-03 17:02:55 -07:00
David Zhao
13151b24a0
Re-enable static check ( #2520 )
2024-02-27 17:58:56 -08:00
David Zhao
8371848747
Version 1.5.3 ( #2489 )
...
* Version 1.5.3
* add missing copyright notices
* update protocol for redis.tls YAML keys
2024-02-17 12:37:15 -08:00
David Zhao
28ae092ea8
version 1.5.2 ( #2338 )
2023-12-21 23:04:19 -08:00
David Zhao
be526cc43e
Adds callback to notify when workers are registered ( #2328 )
2023-12-20 08:10:35 -08:00
David Zhao
02c28a5946
Fix Selected attribute not being copied ( #2289 )
2023-12-03 22:05:23 -08:00
David Zhao
98c81b92bb
Helper function to remove address from ClientInfo ( #2288 )
2023-12-03 10:48:33 -08:00
David Zhao
37e1864df8
Expose detailed connection info with ICEConnectionDetails ( #2287 )
...
* Expose detailed connection info with ICEConnectionDetails
* clone to avoid data race
* lower transport
* simplify
* address feedback
2023-12-03 10:03:41 -08:00
David Zhao
3fe124c87f
Log cleanup pass ( #2285 )
...
* Log cleanup pass
Demoted a bunch of logs to DEBUG, consolidated logs.
* use context logger and fix context var usage
* moved common error types, fixed tests
2023-12-02 15:07:31 -08:00
David Zhao
4ba4f5310b
Use default psrpc client parameters ( #2269 )
2023-11-27 23:20:16 -08:00
David Zhao
a24b9b840d
v1.5.1 ( #2235 )
2023-11-09 15:41:45 -08:00
David Zhao
d9cf7d2a11
v1.5.0 ( #2145 )
2023-10-15 22:14:36 -07:00
David Zhao
65934e6486
Fix ICE connection fallback ( #2144 )
...
* Fix ICE connection fallback
Short connection detection relied on iceFailedTimeout, which previously
had been misinterpreted. Since we've reduced iceFailedTimeout, it is
creating false negatives.
We'll instead use PingTimeout since clients are expected to keep the
signal connection active.
* reduce ping interval to align with total ice failure timeout
2023-10-15 14:36:12 -07:00
David Zhao
0931dc0300
Handle playoutDelay for Firefox ( #2135 )
...
We will need to disable playoutDelay for FF users if the developer is
assuming streams are synced.
2023-10-07 00:00:52 -07:00
David Zhao
f40a97fd3e
Allow playout delay even when sync stream isn't used. ( #2133 )
...
The two options should function independently. Users could still improve
video jitter by using up to 100ms of playout delay.
2023-10-06 14:51:11 -07:00
David Zhao
4c9d95149d
Enable SVC codecs by default ( #2109 )
2023-09-27 21:16:13 -07:00
David Zhao
0b0431b765
Per-session TURN credentials ( #2080 )
...
Switching to using session specific TURN credentials instead of shared
credentials per Room. Also eliminates need to load Room from Redis
during TURN authentication
2023-09-17 10:08:35 -07:00
David Zhao
340906267f
Reduce ghost participant disconnect timeout ( #2077 )
...
It's been reported that "ghost" participants, those that did not terminate
cleanly, hang around the room for too long after they disappear.
Evaluating our timeouts a bit, it seems that we are really conservative
in waiting for participants to disconnect. This PR cuts down the disconnect
timeout from 50s to 20s, a 30s reduction.
2023-09-16 00:15:04 -07:00
David Zhao
2113557842
Skip SendDataPacket logging on transport failure ( #2074 )
...
That's a sign of peer connection failure, we do not need to log these
2023-09-15 12:55:54 -07:00
David Zhao
f351f9b2ed
Allow RoomService.SendData to use participant identities ( #2051 )
...
* Allow RoomService.SendData to use participant identities
* update protocol
* update webrtc to 3.2.19
2023-09-08 16:22:56 -07:00
David Zhao
d6ebc081d5
Use random NodeID instead of MAC based ( #2029 )
...
Makes it possible to run multiple instances of livekit-server locally.
Also enables Signal Relay by default as default signal proxy.
2023-09-02 17:36:55 -07:00
David Zhao
d5808f96df
Disconnect participant when signal proxy is closed ( #2024 )
...
When signal proxy is closed, we'd want to stop writing to it and sever
WS connection with the client. Client would go into a reconnect sequence
2023-08-31 09:39:45 -07:00
David Zhao
64bcef28aa
Address comments from #1998 ( #2006 )
2023-08-27 22:50:36 -07:00
David Zhao
eed8e85008
Demote more logs to debug ( #1998 )
2023-08-27 19:17:38 -07:00
David Zhao
adead8bb2b
v1.4.5 ( #1988 )
2023-08-22 17:40:51 -07:00
David Zhao
75f5387ccd
Allow data packet to be sent to participants by identity ( #1982 )
...
* Allow data packet to be sent to participants by identity
* update gomodules
2023-08-19 23:03:09 -07:00
David Zhao
13b1b4808f
Fix race condition causing new participants to have stale room metadata ( #1969 )
...
If room metadata is changed in between when a participant is joining and
when they've became active, that participant will not have the latest
room metadata.
2023-08-15 17:30:26 -07:00
David Zhao
387faf2718
Demote removing subscribers for MIME ( #1954 )
2023-08-10 18:50:19 -07:00
David Zhao
0f9fb24678
A few more logging component changes ( #1934 )
2023-08-03 18:46:48 -07:00
David Zhao
debd75fa15
Integrate logger components ( #1933 )
...
* Integrate logger components
Dividing into the following components
* pub - publisher
* pub.sfu
* sub - subscriber
* transport
* transport.pion
* transport.cc
* api
* webhook
* update go modules
2023-08-03 13:31:17 -07:00
David Zhao
981fb7cac7
Adding license notices ( #1913 )
...
* Adding license notices
* remove from config
2023-07-27 16:43:19 -07:00
David Zhao
5d1d454a98
Fix missed label arg in logger ( #1886 )
2023-07-16 20:05:41 -07:00
David Zhao
557fe7c9d3
Mark room as dirty after track published changes ( #1878 )
...
Ensure that we are recomputing NumPublished when needed
2023-07-13 16:33:04 -07:00
David Zhao
8a1fc223da
Fix RTC IP when binding to 0.0.0.0 ( #1862 )
2023-07-09 16:55:37 -07:00
David Zhao
52212a6902
v1.4.4 ( #1861 )
2023-07-08 23:47:33 -07:00
David Zhao
42a7d52272
Return 404 with DeleteRoom/RemoveParticipant when deleting non-existent resources ( #1860 )
...
Fixes #1587
2023-07-08 22:30:49 -07:00
David Zhao
cbec68ae44
Do not use cancellable context for Redis operations ( #1859 )
2023-07-08 12:06:31 -07:00
David Zhao
3e71ea3d77
Fixed hidden participant update ( #1857 )
2023-07-07 13:36:15 -07:00
David Zhao
919355c873
Log additional details when updating participant permissions ( #1855 )
...
To help track down sporadic updateParticipant failures
2023-07-06 23:38:01 -07:00
David Zhao
4952c641b3
Fix regression when bind-address is not explicitly provided ( #1837 )
...
when bind address is set to loopback, it would break RTC IP discovery.
2023-06-28 20:22:59 -07:00
David Zhao
7be9e2258d
Upgrade to Pion 3.0.11, disable active TCP ( #1836 )
2023-06-28 16:53:58 -07:00
David Zhao
f71544e27a
Do not send ParticipantJoined webhook if connection was resumed ( #1795 )
...
* Do not send ParticipantJoined webhook if connection was resumed
* isResume -> isMigration
2023-06-15 15:39:04 -07:00
David Zhao
ba513f521d
Update protocol to ensure Room metadata updates are sent immediately ( #1787 )
2023-06-10 20:15:41 -07:00
David Zhao
7e5a7ae79f
Fixed windows build ( #1768 )
2023-06-04 00:17:25 -07:00
David Zhao
109620dfb6
Version 1.4.3 ( #1767 )
2023-06-03 23:51:29 -07:00
David Zhao
b5c8fe5294
Perform unsubscribe in parallel to avoid blocking ( #1760 )
...
* Perform unsubscribe in parallel to avoid blocking
When unsubscribing from tracks, we flush a blank frame in order to prepare
the transceivers for re-use. This process is blocking for ~200ms. If
the unsubscribes are performed serially, it would prevent other subscribe
operation from continuing.
This PR parallelizes that operation, and ensures subsequent subscribe
operations could reuse the existing transceivers.
* also perform in parallel when uptrack close
* fix a few log fields
2023-06-02 00:13:18 -07:00
David Zhao
956735ae05
Fix node stats updates on Windows ( #1748 )
...
Because we aren't able to get CPU count/load info on Windows, they are
stubbed out to return placeholders. This restores compatibility to run
on Windows.
2023-05-29 10:53:08 -07:00
David Zhao
61d393e709
Disable active TCP by rolling back to ICE v2.3.3 ( #1735 )
...
* Revert "Disable active TCP (#1726 )"
This reverts commit 5260907ffe .
* Disable active TCP by rolling back to ICE v2.3.3
2023-05-23 21:27:03 -07:00
David Zhao
12c6f1e12c
Added Xiaomi 2201117TI to devices that does not support H.264 ( #1728 )
2023-05-22 21:38:56 -07:00
David Zhao
5260907ffe
Disable active TCP ( #1726 )
...
Active TCP was added in pion/ice v2.3.4. This is causing a couple of issues for us.
Active TCP does not make sense for an SFU. Clients are expected to be behind NAT and we should not be dialing them. Instead, LiveKit exposes a TCP port so clients could dial in
Active TCP is causing all iOS clients to become disconnected immediately. This is impacting all version of libwebrtc-based iOS clients (tested from M104 to M111)
2023-05-19 23:00:06 -07:00
David Zhao
93d6651d60
Improve error message when WaitUntil fails. ( #1723 )
2023-05-18 14:10:40 -07:00