David Colburn
c92e0e38d5
Room closed fix ( #370 )
...
* Room closed fix
* switch to uber/atomic
* release after err check
2022-01-25 09:23:22 -07:00
David Zhao
52fc53d325
Issue updated tokens to clients. ( #365 )
...
This ensures client reconnect attempts would be successful for long running rooms. It also fixes inaccurate permissions that were set incorrectly when full reconnections take place.
2022-01-23 23:15:49 -08:00
David Zhao
f9a1dd97c2
Ensure RoomService operation is complete prior to returning ( #362 )
...
* Ensure service doesn't return before operation is complete
* added integration tests for RoomService
2022-01-21 11:00:33 -08:00
Raja Subramanian
f662119ca4
Add roomID to logger util ( #345 )
2022-01-17 16:36:10 +05:30
Raja Subramanian
e67db84b3b
Remove stubs ( #331 )
...
* WIP commit
* Use LocalParticipant interface
* Remove no-op local participant
* Remove localparticipant
* Remove no-op stubs
* Consolidate PublishedTrack into MediaTrack
2022-01-12 00:11:48 +05:30
David Zhao
c2ba26eee6
Handle SimulateScenario requests ( #330 )
...
* Handle SimulateScenario requests
* actually use sendLeave
* fix local test failures due to filehandle limit
2022-01-11 00:37:24 -08:00
cnderrauber and cnderrauber
8582ca4c9b
Session migration ( #319 )
...
* migrate between nodes
* session migration
* bug fix
* use version instead of query parameter
* clean code
* clean
* merge master
* solve comments
* solve comment
* update go.mod
Co-authored-by: cnderrauber <zengjie9004@gmail.com >
2022-01-08 18:54:23 +08:00
Raja Subramanian
995c1e8676
type aliases -> type definitions ( #312 )
...
* type alias -> type definition
* participantSid -> participantID in a comment
* Update protocol
2022-01-03 12:43:58 +05:30
Raja Subramanian
3a9009ae12
type definition of room name ( #311 )
...
* WIP commit
* update protocol
* Fixing a test and catching one place where casting was missed
* Fix one more spot which need conversion from livekit.RoomName -> string
* do not covert list
2022-01-02 16:49:16 +05:30
Raja Subramanian
98586c2490
A simple configuration for congestion control. ( #305 )
2021-12-31 00:26:29 +05:30
Raja Subramanian
9d78619ca3
Catching a few more files with types ( #299 )
...
* Use types in mediatrack.go
* A bunch more files get types
* One more file
2021-12-29 23:51:06 +05:30
David Zhao
3108ef22ad
Ability to set name on Participant ( #293 )
2021-12-28 00:12:04 -08:00
David Zhao
15cd98be22
Enable Room.List to filter by specific names ( #290 )
2021-12-27 23:32:29 -08:00
Raja Subramanian
a47153e50c
Defer RTCP channel close till published tracks are closed ( #286 )
...
* Defer RTCP channel close till published tracks are closed
* Check for Close called before closing RTCP channel
2021-12-27 14:17:06 +05:30
Raja Subramanian
ee99a323d2
Publisher controlled flex permissions ( #284 )
...
* WIP commit
* Add some tests
* allowedSubscribers uses participant sid
* correct variable name
* correct another variable name
* Add ParticipantSid to SubscriptionPermissionUpdate message
* protocol v0.11.2
* WIP commit
* WIP commit
* fix tests
* Remove unused code
* Close uptrack manager
* Remove duplicate close
* move comment to the correct line where the loop could be long
* Fix disallowed list revocation, thank you Jie
* Remove unneeded interface method
* RemoveSubscriber in Participant
* Clean up disallowed subscriptions and handle permissions on new track addition
* add test for track addition after permission set
* Remove unnecessary check
2021-12-24 14:14:40 +05:30
Raja Subramanian
eae6eff6a3
Include participant_sid in UpdateSubscription. ( #279 )
...
* Include `participant_sid` in `UpdateSubscription`.
Prevents all publisher tracks to find a match.
* generate
* Update protocol version
2021-12-23 09:18:32 +05:30
shishirng
2e4ccd2577
Send client sdk type when participant joins in telemetry ( #275 )
...
Signed-off-by: shishir gowda <shishir@livekit.io >
2021-12-21 15:35:27 -05:00
David Colburn
faa870de3d
Move callbacks out of messageRouter ( #269 )
...
* move callbacks out of messageRouter
* OCD
* more OCD
* fix forwarder test
* even more OCD
* maximum OCD
* package name collision, copy lock by value
2021-12-17 13:19:23 -08:00
David Zhao
c08d1e9d72
Improve test CI ( #262 )
...
* minimal change
* Better test format for GH CI
* Give server a bit longer to startup, to improve GH test
2021-12-14 17:15:08 -08:00
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 Zhao
318bee4f1e
Improve video quality selection by using publisher feedback ( #238 )
2021-12-06 12:12:08 -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 Colburn
a0b623914a
store participant before webhook ( #200 )
...
* store participant before webhook
* delete participant before participant left event
2021-11-21 13:41:16 -06: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
David Zhao
ffb2c50a70
Fixed room API breakage ( #190 )
2021-11-14 11:18:01 -08:00
David Colburn
289ebd32ff
Telemetry refactor ( #172 )
...
* telemetry refactor
* fix imports
* update protocol
2021-11-08 20:00:34 -06:00
Mathew Kamkar
45aeafd3af
more room logging
2021-11-02 14:05:52 -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
Mathew Kamkar
f3e916e2fe
Room Allocator Interface ( #161 )
...
* room allocator interface
* remove wire bind
* fix test
2021-10-28 21:02:17 -07:00
David Zhao
0898c17e8a
Select video quality using provided dimensions ( #158 )
2021-10-28 21:01:05 -07:00
David Colburn
1f643dc96b
remove SignalRequest_Simulcast ( #154 )
2021-10-21 17:11:43 -05:00
David Colburn
86d7fe8241
take iceServers out of room ( #151 )
2021-10-19 19:56:34 -05:00
David Colburn
0c8fe361b2
Small refactor ( #148 )
...
* small refactor
* extra line
* fix room allocator test
* selector fakes not used
* keep decisions out of router
* put nodeId logic back
* fix room allocator test
2021-10-18 21:49:16 -05:00
Théo Monnom
939ed10ca6
Room Metadata Implementation ( #126 )
2021-10-02 22:08:29 -07:00
David Zhao
cdb04248fb
Fixed reconnection for single node
...
It does not yet support resuming the session.
2021-09-24 14:19:23 -07:00
David Colburn
d83b7b543d
update protocol
2021-09-22 13:48:37 -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 Colburn and David Zhao
abde72a907
Remove room manager from room service ( #119 )
...
* start splitting
* room allocator
* remove room manager
* Update pkg/service/roomallocator.go
Co-authored-by: David Zhao <david@davidzhao.com >
Co-authored-by: David Zhao <david@davidzhao.com >
2021-09-17 01:29:29 -05:00
Mathew Kamkar
700a879c0b
Redis Router graceful stop ( #116 )
...
* prestop and hasparticipants in interface
* add prestop function to existing routers
* fakerouter prestop
* update protocol version
* read lock
* redis router graceful stop
* test fix
* force stop
2021-09-15 13:07:44 -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
1f1eea383f
add ctx to interfaces ( #105 )
...
* add ctx to interfaces
* use existing context
2021-08-30 20:31:24 -05:00
David Colburn
0bfd05c3b8
move router room manager link ( #103 )
2021-08-30 17:18:18 -05:00
David Colburn
69c1d4c295
Interfaces ( #97 )
...
* create interface
* move room manager to interface
* interfaces
* updates
* fix loop
* fix fakes
* remove node types
2021-08-28 18:28:08 -05:00