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
David Zhao
c254e5713f
v1.4.2 release notes ( #1663 )
2023-05-09 23:41:34 -07:00
David Zhao
ae5d2c3261
Integrate fix for webhook delivery delays ( #1690 )
2023-05-05 23:11:22 -07:00
David Zhao
0586009e0d
Do not send hidden participants after resume ( #1689 )
2023-05-05 22:38:17 -07:00
David Zhao
5fcd682fb0
Refactor participant metadata updates to avoid duplication ( #1679 )
...
* Refactor participant metadata updates to avoid duplication
* generated fakes
2023-05-03 13:50:45 -07:00
David Zhao
b4ea4de5c0
Skip room updates to participants unless they are active
2023-04-24 15:24:50 -07:00
David Zhao
279b3604c3
Add back ServerRegion and ServerVersion ( #1650 )
...
clients are still dependent on them
2023-04-23 23:10:00 -07:00
David Zhao
3f64828a77
Send Room updates when participant counts change ( #1647 )
...
Reduces the number of unneeded generation with ProtoProxy
2023-04-22 21:08:59 -07:00
David Zhao
40ceddd18b
Integrate QueuedNotifier, fixes out-of-order delivery ( #1615 )
2023-04-15 01:20:23 -07:00
David Zhao
f8a94c2125
Fixed timing-related failures with tests ( #1608 )
2023-04-12 21:01:57 -07:00
David Zhao
4134965998
Integrate webhook retries ( #1607 )
2023-04-12 20:42:44 -07:00
David Zhao
6abe3b1aee
Adding logs when clients reconnect ( #1598 )
2023-04-10 21:26:16 -07:00
David Zhao
a12f467e7a
chore: added omitempty to optional config entries ( #1594 )
2023-04-09 17:51:33 -07:00
David Zhao
e03f75d6a1
Implements source-specific permissions and client-driven metadata updates ( #1590 )
...
Closes #1565
2023-04-07 23:47:49 -07:00
David Zhao
57b931e9bd
Fix return code when no panics have occurred ( #1589 )
...
Actually fix #1513
2023-04-07 19:54:30 -07:00
David Zhao
fc6a306031
Create a helper for retrieving a user's actual IP ( #1579 )
2023-04-04 19:32:49 -07:00
David Zhao
1cb6cc3ed7
Do not sample per participant to reduce memory usage ( #1576 )
2023-04-03 15:24:53 -07:00
David Zhao
602f987ed7
Switch up ordering DTLS elliptic curves to reduce likelihood of filtering ( #1568 )
...
tl;dr. Pion-based traffic is impacted because TOR Snowflake uses Pion
https://github.com/pion/dtls/pull/474
2023-03-31 22:47:23 -07:00
David Zhao
8be2b88ff6
Config docs for signal relay ( #1566 )
2023-03-31 18:28:15 -07:00
David Zhao
b5b896a6c6
Version 1.4.0 ( #1564 )
2023-03-30 23:16:36 -07:00
David Zhao
82fd3e865e
Fix deadlock caused by subscription manager test ( #1563 )
...
We held the lock if subscription length check fails
2023-03-30 17:10:32 -07:00
David Zhao
576eb7abbd
Update urfave/cli to fix 1 return value with livekit-server --help ( #1549 )
...
Fixes #1513
2023-03-25 23:02:08 -07:00
David Zhao
d269b8c935
Update README with heading and demo changes ( #1541 )
2023-03-24 11:16:36 -07:00
David Zhao
d8356e012e
Give proper grace period when recorder is still in the room ( #1547 )
...
When a recorder is in the room, we would skip grace period due
to a bug with how LastLeftAt was set. This would cause RoomComposite
templates to exit immediately if the last participant in the room reconnects.
2023-03-23 23:57:11 -07:00
David Zhao
5ff72a99b9
Report publish & subscribe RTPStats as Telemetry events ( #1506 )
2023-03-10 10:28:54 -08:00
David Zhao
8c43b7b48f
Fix unsubscribed speakers stuck as speaking to clients ( #1475 )
...
When we unsubscribe from a speaker, SendSpeakerUpdates will drop updates
from that speaker. This has the side effect of dropping the "clearing"
message that we are sending as well.
2023-02-26 23:56:09 -08:00
David Zhao
ade26f7c9e
Keep track of pending reconciles to avoid duplicate queueReconcile ( #1474 )
2023-02-26 23:45:32 -08:00
David Zhao
9a05fc529a
1.3.5 release ( #1471 )
2023-02-26 12:05:20 -08:00
David Zhao
34fcf9e496
Additional case of subscribing to a closed track ( #1465 )
...
When the publisher stops publishing, the individual receivers would close
attached DownTracks first before notifying MediaTrackReceiver callbacks.
This means #1454 does not fix the issue entirely since there is still a window
when we can subscribe to a closing track.
2023-02-23 17:07:16 -08:00
David Zhao
e855620379
Prevent subscribing to track that's closing ( #1454 )
...
Due to the order of events in MediaTrackReceiver and friends, SubscribedTrack
will be closed before the track is removed from RoomTrackManager.
Because of this, when a track is unpublished, it's possible to be subscribed
to the track as it's closing.
By introducing a closing state, we'd prevent accidental subscription to
closing tracks.
2023-02-22 01:14:49 -08:00
David Zhao
7a2d9b3d61
Ensure subscription logging is clear & without sampling ( #1440 )
2023-02-17 22:15:19 -08:00
David Zhao
c16eb66925
Fix race condition with unsubscribing from a republished track ( #1429 )
2023-02-16 15:11:23 -08:00
David Zhao
4f6fda586c
Do not unsubscribe from track if it's been republished ( #1424 )
...
thank you @boks1971 for the debugging
2023-02-14 23:12:08 -08:00
David Zhao
ea12e1477f
Update to go-redis v9. Fixed Redis cluster support ( #1415 )
...
* Update to go-redis v9. Fixed Redis cluster support
2023-02-12 22:22:21 -08:00
David Zhao
3e08ff1043
version 1.3.4 ( #1411 )
2023-02-09 23:31:42 -08:00
David Zhao
9a7ea7a2fa
Close previous request channels when during initial retry ( #1409 )
...
So we don't leave abandoned requests hanging on the media instance
2023-02-09 17:27:33 -08:00
David Zhao
2851a8ac98
Improved robustness of subscription stack ( #1382 )
...
UpdateSubscription had a shortcoming where when it couldn't find the
participant, it ignored the request.
This PR further removes the reliance of current publisher state from
subscribers.
- SubscribeToTrack only takes in a trackID
- Introduced RoomTrackManager to maintain all published tracks to a room
- Added TrackUnpublished event to clearly indicate when a track has been removed
- SubscribeRequested event no longer include information about the publisher
2023-02-06 18:08:26 -08:00
David Zhao
add9962655
Avoid triggering subscription failed handler unnecessarily. ( #1379 )
...
Certain errors are not at fault of the subscriber. For these errors
the reconciler should keep trying instead of giving up.
2023-02-03 01:06:04 -08:00
David Zhao
15edd4d86e
Fix potentially nil access in buffer ( #1374 )
2023-02-02 14:56:07 -08:00
David Zhao
be4764b93b
Improve panic recovery to use participant logger. ( #1375 )
...
Also made IssueFullReconnect public
2023-02-02 14:55:50 -08:00