Commit Graph
108 Commits
Author SHA1 Message Date
David Colburn 5fdb6361cd Dev debug info (#50) 2021-07-13 14:05:25 -05:00
hn8andDavid Zhao dcfe7eaf4f Enhancement: audio speakers (#44)
* refactor: active speakers

1. Observe the loudest adjusted with active ratio instead of linear average of decibel values
2. Follow RFC6465 to convert audio level from decibel to linear value.
3. Quantize audio level for stable slice comparison
4. Switch moving average algorithm from MMA to EMA to have the same center of mass with SMA
5. Minor: remove seenSids map allocation
6. Minor: minimize division arithmetic

* Update pkg/rtc/audiolevel.go

Co-authored-by: David Zhao <david@davidzhao.com>
2021-07-09 09:46:24 -07:00
David Zhao 6751361187 Feature: codec restrictions.
In order to ensure clients are publishing with compatible codecs, the server can enforce codec restrictions.
2021-07-02 16:54:54 -07:00
David Zhao 343aec98a0 Remove STUN candidates, disconnect clients on ICE failed 2021-06-28 12:47:16 -07:00
David Zhao c0c38f2e1d Fixed deadlocks with updated simulcast logic 2021-06-25 17:12:22 -07:00
David Colburn eda5cfbfd5 better pli throttling 2021-06-23 12:00:18 -07:00
David Colburn 0ffb8a97e4 rtcpThrottle -> pliThrottle 2021-06-22 15:00:27 -07:00
David Colburn eebc2f5acd add throttle config 2021-06-21 17:13:58 -07:00
David Colburn 46ad247927 fix addTrack 2021-06-21 16:16:13 -07:00
David Colburn 31b4148052 don't send empty pkts 2021-06-21 15:54:42 -07:00
David Colburn fee6f426bb close rtcpThrottle 2021-06-21 15:30:18 -07:00
David Colburn e4a460f30b nil checks 2021-06-21 15:08:49 -07:00
David Colburn ce3199b8b1 throttle 2021-06-21 14:57:26 -07:00
David Zhao 69290c535b Send full update after joining when there are missed updates 2021-06-19 00:14:40 -07:00
David Zhao 38c81e5645 Support for video dimensions in publications (#36)
* send back video dimensions

* Store video dimensions in MediaTrack and forward in TrackInfo

* use committed protocol
2021-06-18 21:05:56 -07:00
David Zhao 515b1f0f7e exit downtrackRTCPWorker after disconnection 2021-06-17 23:31:17 -07:00
David Zhao b2201a7b34 don't set PeerConnection callbacks, ignore the responses instead 2021-06-17 22:54:09 -07:00
David Zhao 3fad61b365 Fix "missing tracks" - always send participant updates 2021-06-16 13:39:04 -07:00
David Zhao 7173dcc1d1 release read lock on AddSubscriber earlier 2021-06-08 15:28:49 -07:00
David Zhao a3228c2ae9 resolve data race conditions, code quality 2021-06-04 14:57:55 -07:00
David Colburn 5baf97e99b imports/inspections 2021-06-04 14:30:10 -05:00
David Zhao 0416299e02 fix sender report batching to not exceed MTU 2021-06-03 15:46:41 -07:00
David Colburn 69b94e1142 error logging 2021-06-03 01:57:43 -05:00
David Zhao 6a99146c21 skip ICE restart if subscriber not connected 2021-05-14 22:50:45 -07:00
David Zhao bbadd4ccb6 properly cleanup downtracks on subscriber disconnect 2021-05-12 23:40:41 -07:00
David Zhao 681010072c support for exposing stats via prometheus 2021-05-11 22:04:59 -07:00
David Zhao 9616149a88 collect inbound and outbound packet stats 2021-05-11 00:31:18 -07:00
David Zhao e1f23e6dbe remove logs about sending lossy packet 2021-04-28 12:39:07 -07:00
David Zhao 6b63cd5b31 Revamp data channels (#32)
* support for built-in data channels. active speaker updates via data channel

* fixed tests

* update to Pion 3.0.27
2021-04-27 22:02:59 -07:00
David Zhao 84ac0a718d single port mode connectivity improvements, ICE v2.1.6 2021-04-25 14:13:35 -07:00
David Zhao 4725872884 Disconnect immediately when server initiated close 2021-04-21 22:05:16 -07:00
David Zhao d6c155e060 set joinedAt when participant is created 2021-04-21 21:52:31 -07:00
David Zhao 3b236f0d72 handle client reconnect with ICE restarts 2021-04-19 16:51:20 -07:00
David Zhao 93d10b2640 Manual negotiation and plan-b support 2021-04-16 00:56:25 -07:00
David Zhao e4238890ff Refactor/cleanup of negotiation path 2021-04-15 17:03:22 -07:00
David Zhao e47754179c disconnect participant when ICE connection fails 2021-04-10 10:58:12 -07:00
David Zhao b29bde4b87 fixed RLock typo 2021-04-07 14:11:47 -07:00
David Zhao b90f851be5 return participant connected timestamps 2021-03-28 21:05:20 -07:00
David Zhao dfac44d59e reduce reliance of funk, fixed bug getting subscribed tracks 2021-03-27 21:54:46 -07:00
David Zhao 537edda4c3 handle new UpdateParticipant API, enable permission updates 2021-03-20 22:27:47 -07:00
David Zhao f7ed2cee60 RoomService.updateParticipantMetadata, participant permissions 2021-03-16 01:22:21 -07:00
David Zhao 7d02c01fd8 refactor - moved common code to livekit/protocol 2021-03-13 22:01:51 -08:00
David Zhao e20c831c14 automatic configuration of TURN, with per-room credentials. version 0.6.0 2021-03-07 23:30:21 -08:00
David Zhao 03d0a8c047 updated to ion-sfu v1.9.1, removed package bufferFactory 2021-03-01 14:49:46 -08:00
David Zhao 0a5808c73e use nack fix in ion-sfu, fixes #26 2021-02-28 22:28:24 -08:00
David Zhao e402d0d0af subscriber control of tracks (unsubscribe/mute/quality), support simulcast (#23)
* subscription control & simulcast RTC APIs

* don't remove tracks for simulcast
2021-02-16 13:52:50 -08:00
David Zhao 99baeb38e4 fix bugs with websocket reconnection, don't re-use redis sinks (#22) 2021-02-15 17:57:01 -08:00
David Zhao a96069969d support audio level extension & active speaker detection (#20)
* send active speaker updates with audio level

* add test on loudness sorting

* use a float to represent audio level
2021-02-14 14:30:23 -08:00
David Zhao 090f8d0664 use dedicated PeerConnections for sending and receiving (#19)
* protobuf updates to support new protocol

* use dedicated publish & subscribe peerconnections

* update client to work with dedicated PCs

* fix Go client negotiation, reduced length of UUID
2021-02-12 22:30:31 -08:00
David Zhao 538461d5dc pass client defined metadata from JWT to participant (#17) 2021-02-10 23:13:36 -08:00