David Zhao
43079866a2
Update to Pion v3.1.5, fixed simulcast / non-simulcast mixing
2021-10-15 09:35:01 -07:00
David Zhao
eba0c23375
Handle TrackInfo.Source attribute ( #146 )
...
* Support passing along Source attribute
2021-10-14 13:10:57 -07:00
Raja Subramanian and David Zhao
ac4db4575f
LK-105 (Opus DTX) ( #140 )
...
* LK-105 (Opus DTX)
https://linear.app/livekit/issue/LK-105/allow-enabling-of-opus-dtx
Enable/Disable Opus DTX using SDP answer based on setting in
`AddTrack` request.
Testing:
--------
Chrome and Firefox work. Having audio problems with Safari
(maybe the Safari 15 issue as I am not getting media)
* Check that receiver has no tracks
* Skip non-audio transceivers
* A small clean up to not use pendin track outside lock and also append with spread
* Address comments from review by David
* Update pkg/rtc/participant.go
Co-authored-by: David Zhao <david@davidzhao.com >
* Pull in tagged version of webrtc and lk protocol
Co-authored-by: David Zhao <david@davidzhao.com >
2021-10-13 11:22:33 +05:30
Mathew Kamkar
84ab0f82af
Prometheus counters for RTC connection steps ( #143 )
...
* signal ws connection, participant join, ice connection
* must register
* offer negotiation
* dz review: offer and offer_response
* dz review: answer
2021-10-12 15:22:17 -07:00
David Zhao
52e10ea315
handle nil MessageChannel
2021-10-06 22:24:09 -07:00
Théo Monnom
939ed10ca6
Room Metadata Implementation ( #126 )
2021-10-02 22:08:29 -07:00
David Zhao
ff47301820
Implements protocol 3 speaker updates ( #120 )
...
* Disallow AddTrack from participants that don't have the permission
* Support protocol 3 speaker updates, client info
* update protocol
* Disallow AddTrack from participants that don't have the permission
* increase wait time for GH to pass
2021-09-17 11:47:13 -07:00
David Zhao
20d0c0ca43
Fix mute of simulcasted video tracks with < 3 encodings ( #114 )
2021-09-14 15:50:34 -07:00
David Zhao
614ede2edc
Supports client protocol 3 - subscriber as primary ( #110 )
...
* use subscriber connection as primary whenever possible
* backwards compat for data messages
* bump protocol version
2021-09-09 00:53:15 -07:00
David Colburn
2a3fb5f0e7
move logging to protocol ( #109 )
2021-09-09 00:45:42 -07:00
David Zhao
e82d50d717
Send explicit message to clients for mute/unmute. ( #107 )
...
* Send explicit message to clients for mute/unmute.
* documentation in config
2021-09-01 21:50:02 -07:00
David Colburn
8a44fad307
protocol 0.8 ( #95 )
...
* protocol 0.8
* merge new selector
2021-08-27 13:16:33 -05:00
Mathew Kamkar
f5466c74e6
list-nodes command action ( #87 )
...
* list-nodes command action
* refactor stats into a package
* store existing stats in redis, more refactoring
* dz review: atomic load
2021-08-24 10:14:39 -07:00
David Zhao and ChesterMing
bcf6e15e07
SendData API & publishData permission ( #88 )
...
* SendData Server API
* SendData Server-API adjustments based on suggestions
* Update proto version
* enforce publishData permission
* go mod tidy
* fix go.mod
* go mod tidy
Co-authored-by: ChesterMing <89124853+ChesterMing@users.noreply.github.com >
2021-08-19 18:11:48 -07:00
David Zhao
29edf4e8d9
Improve dynamic simulcast, properly cleanup after pendingTracks ( #84 )
2021-08-13 15:49:25 -07:00
David Zhao
5713731363
allow user to mute before track is fully published ( #82 )
...
fixes https://github.com/livekit/client-sdk-js/issues/28
2021-08-10 21:09:23 -07:00
David Colburn
4bab395ac9
Hidden participants ( #65 )
...
Enables hidden recording and/or forwarding participants
2021-07-19 18:33:28 -05:00
hn8
87dfb2b117
log: consistent log key ( #60 )
2021-07-19 10:28:51 -07:00
David Colburn
5fdb6361cd
Dev debug info ( #50 )
2021-07-13 14:05:25 -05:00
hn8 and David 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