David Zhao
8abd734d16
Use participant and room specific loggers ( #252 )
2021-12-10 15:51:05 -08:00
David Zhao
d342335d09
Split out SignalHandler to simplify testing ( #250 )
2021-12-10 13:12:45 -08:00
David Zhao
882f3bdde5
Allow subscription requests made from server APIs ( #249 )
2021-12-10 11:51:03 -08:00
David Zhao
2d93ccd668
Updated protocol from protocol/proto -> protocol/livekit ( #242 )
...
* Updated protocol from protocol/proto -> protocol/livekit
* separate MediaTrack from PublishedTrack
2021-12-08 13:58:38 -08:00
David Colburn
c41384cd09
ActiveRecording ( #234 )
...
* ActiveRecording
* regenerate
* update to 0.10.3
* 1.17
2021-12-03 21:40:53 -08:00
David Colburn
991c334d2d
telemetry interfaces ( #210 )
...
* telemetry interfaces
* move AddUptrack under stats
* regenerate
* a space
* consistency
* fix test
2021-11-24 17:58:04 -08:00
lukasIO
d9219a2a67
track numParticipants in room ( #199 )
...
* track numParticipants in room
* only track participant if not a hidden participant
* adjust coding style to use ++
* fix typo
* fix missing nil check
* update roomstore with new numParticipants on participantChanged
* only update roomstore if participant is not hidden
* call StoreRoom directly after StoreParticipant when joining/leaving
2021-11-21 14:15:22 -06:00
David Zhao
6dcb29c559
Use publisher PC as default with publish-only connections ( #198 )
2021-11-20 22:28:36 -08:00
David Colburn
95e29d3766
Interface updates ( #194 )
...
* update interfaces, a bit of cleaning
* regenerate
* return interface for RoomService
* export packetBufferSize
* update router interface
* move participant key into router
* change locks back
* read only room store
* fix server rm locks
* update SendJoinResponse
* clean up imports
* update room messaging
* regenerate
2021-11-15 15:25:50 -06:00
cnderrauber and cnderrauber
1e1aaeb86b
Separate from ion-sfu ( #171 )
...
* Separate from ion-sfu
changes:
1. extract pkg/buffer, twcc, sfu, relay, stats, logger
2. to solve cycle import, move ion-sfu/pkg/logger to pkg/sfu/logger
3. replace pion/ion-sfu => ./
reason: will change import pion/ion-sfu/pkg/* to livekit-server/pkg/*
after this pr merged. Just not change any code in this pr, because it
will confused with the separate code from ion-sfu in review.
* Move code from ion-sfu to pkg/sfu
* fix build error for resovle conflict
Co-authored-by: cnderrauber <zengjie9004@gmail.com >
2021-11-09 12:03:16 +08:00
David Colburn
289ebd32ff
Telemetry refactor ( #172 )
...
* telemetry refactor
* fix imports
* update protocol
2021-11-08 20:00:34 -06:00
David Zhao
6a80beedfc
Only send connection quality updates for protocol 5+
2021-11-03 23:09:25 -07:00
David Zhao
aa9534b7fb
Server-driven connection quality detection ( #167 )
2021-11-03 21:05:20 -07:00
Mathew Kamkar
05c4df4e23
Room logger with room name ( #165 )
...
* room with logger
* participant with room logger
* transport with room logger
* simplify room logger usage
* simplify logger
* update protocol
* more room logging, test fix
2021-11-02 14:02:45 -07:00
David Zhao
7442551ae5
Fix missing participant updates race ( #163 )
...
* Fix faulty participant update buffering.
* Fix bug with broadcasting out of order
* dedicated participant update worker, without locks
* use tracker to drop duplicate/out of date messages
* additional lock around filter logic
2021-10-31 15:20:46 -07:00
David Colburn
86d7fe8241
take iceServers out of room ( #151 )
2021-10-19 19:56:34 -05:00
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
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
1bcaf9d0ea
update test client to use protocol 3
2021-09-10 20:58:33 -07:00
hn8
2d215f80b3
Restore SetLogger ( #111 )
...
- Fix buffer.NewBufferFactory: logger.GetLogger() has extra depth. Passing empty logger will use default logger set by serverlogger.SetLogger()
2021-09-10 13:34:46 -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 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 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
hn8
99e9997d0a
feat: support SetLogger & SetLoggerFactory ( #57 )
...
* upgrade logr to stable release v1.0.0
* feat: support SetLogger & SetLoggerFactory
2021-07-18 21:28:09 -07:00
David Colburn
5fdb6361cd
Dev debug info ( #50 )
2021-07-13 14:05:25 -05:00
David Colburn
50538db21f
update log keys
2021-07-09 10:49:21 -07: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 Colburn
815fd5066d
remove unconnected participants after 1m
2021-06-26 18:38:44 -07:00
David Zhao
d8b96ac2c8
Room API to support selective subscriptions
2021-06-23 14:12:51 -07:00
David Zhao
bc8becaff6
fixed logic error in speaker updates
2021-06-22 00:35:33 -07:00
David Zhao
f0d8b1c7ee
fixed bug in smoothing algorithm, fixed tests
2021-06-21 22:18:18 -07:00
David Zhao
d69e9f451e
Smooth audio levels by averaging over samples.
2021-06-21 18:14:28 -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
2cecbad29d
fix: memory leaks with BufferFactory being held
2021-06-14 22:53:29 -07:00
Théo Monnom
321ebab99b
Add the ability to send data to specific participants ( #34 )
...
* UserPacket destination filter
* Updated protocol to v0.5.2
* Added DataChannel tests
2021-06-09 12:14:14 -07:00
David Zhao
a3228c2ae9
resolve data race conditions, code quality
2021-06-04 14:57:55 -07:00
David Colburn
69b94e1142
error logging
2021-06-03 01:57:43 -05:00
David Zhao
9ca662f06e
fix deadlocks in track subscription
2021-06-02 20:42:44 -07:00
David Zhao
0900054c24
ability to disable auto subscribe per participant
2021-05-22 22:54:47 -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
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
e4238890ff
Refactor/cleanup of negotiation path
2021-04-15 17:03:22 -07:00
David Zhao
dfac44d59e
reduce reliance of funk, fixed bug getting subscribed tracks
2021-03-27 21:54:46 -07:00