David Zhao
b7d22c4f34
Fix MessageChannel leaks ( #646 )
2022-04-22 10:53:20 -07:00
cnderrauber
3f9d6c11bc
add log info for client closed websocket ( #640 )
2022-04-21 12:44:43 +08:00
David Zhao
b821a0997d
Use common logging init functions ( #633 )
...
* Use common logging init functions
* update protocol commit
* fix tests
2022-04-20 00:15:11 -07:00
Raja Subramanian
cf627d8bbe
Send adaptive stream param in join ( #626 )
2022-04-19 16:45:35 +05:30
Raja Subramanian
4696503790
Include region in ParticipantInfo ( #585 )
2022-03-31 14:57:55 +05:30
David Colburn
0b8a180554
Code inspection ( #581 )
...
* Code inspection
* fix [4]int64 conversiong
2022-03-30 13:49:53 -07:00
David Colburn
26f7bb498a
Identity cannot be empty ( #580 )
2022-03-30 12:53:32 -07:00
David Zhao
5920672802
feat: unpublish tracks after publish permissions are revoked. ( #545 )
...
* feat: unpublish tracks after publish permissions are revoked.
Uses protocol 7 to indicate client support, otherwise it attempts to
mute the tracks.
Also sends back permissions objects of all participants, and cleaned up
our handling of various permissions attributes.
* fix static check
2022-03-21 00:20:48 -07:00
shishirng
4fb5076807
Check cloudflare headers for real client ip first, default to X-Forwarder-For ( #523 )
...
Signed-off-by: shishir gowda <shishir@livekit.io >
2022-03-17 08:10:44 -04:00
Raja Subramanian
0170cc1cb6
Staticcheck ( #464 )
...
Using `go get -u honnef.co/go/tools/cmd/staticcheck`
Uneaarthed a couple of real bugs
2022-02-25 12:04:08 +05:30
David Colburn
20f21cce2b
Egress ( #455 )
...
* egress updates
* pass egressInfo to delete
* update typefakes
* export StartEgress
* update protocol
* new rpc, rename stores
* add json tag
* update tests
* update protocol
2022-02-24 14:57:14 -08:00
David Zhao
7eb2fecadd
Close websocket connection upon join failure ( #458 )
...
* Close websocket connection on join failure to avoid hang
* fix auto creation bug
2022-02-22 17:43:25 -08:00
shishirng
562546829b
handle remote ip address in case of forwarding ( #421 )
...
Signed-off-by: shishir gowda <shishir@livekit.io >
2022-02-08 16:13:55 -05:00
shishirng
7ac3631b6c
Get clients remote address from request ( #385 )
...
Signed-off-by: shishir gowda <shishir@livekit.io >
2022-01-29 10:51:21 -05:00
David Zhao
3430650d3e
Server-side parsing of UserAgent ( #387 )
2022-01-29 00:52:06 -08: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
Raja Subramanian
d1848ab218
Rename UpdateSubscriptionPermissions -> SubscriptionPermission and other renaming ( #363 )
...
* Store subscription permission in DB
* Comment out subscription permission to DB
* WIP commit
* Clean up
* clean up
* Latest protocol
2022-01-22 12:16:15 +05:30
David Zhao
126bb8867b
Ability to disable auto-create ( #361 )
...
* setting to disable autocreate
* improve test reliability
* update comment
* update to address feedback
2022-01-21 09:57:36 -08:00
Raja Subramanian
f662119ca4
Add roomID to logger util ( #345 )
2022-01-17 16:36:10 +05:30
David Zhao
29eb8d9dbf
Parse additional info parameters clients could send ( #336 )
2022-01-13 08:40:29 -08:00
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
David Zhao
3108ef22ad
Ability to set name on Participant ( #293 )
2021-12-28 00:12:04 -08:00
David Zhao
8abd734d16
Use participant and room specific loggers ( #252 )
2021-12-10 15:51:05 -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
shishirng
461f29c097
Allow participants to create new connection for publishing new tracks ( #224 )
...
* Allow participants to create new connection for publishing new tracks
new param 'publish=<name>' enables publishing new connection with publish
only grants. Also, identity is appended with '#<name>'
* Add integration test to duplicate publish only connection
Signed-off-by: shishir gowda <shishir@livekit.io >
* Reuse token in test and set subscribeGrant to false on publish param
Signed-off-by: shishir gowda <shishir@livekit.io >
* create auth token with grants
Signed-off-by: shishir gowda <shishir@livekit.io >
* Signal ice on negotiate in test client
Signed-off-by: shishir gowda <shishir@livekit.io >
* Update pkg/service/rtcservice.go
Co-authored-by: David Zhao <david@davidzhao.com >
Co-authored-by: David Zhao <david@davidzhao.com >
2021-12-07 16:23:16 -05: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
9aff9af690
back to MessageRouter interface
2021-11-24 18:43:26 -08:00
Mathew Kamkar
e3c91de594
Configurable limit for number of tracks ( #197 )
...
* configurable node track limit
* sample config
* todos
* end of file new line
* default max num tracks
* bandwidth limit
* client message for limit exceeded node
* 10 Gbps default network limit
2021-11-23 15:48:07 -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
David Colburn
289ebd32ff
Telemetry refactor ( #172 )
...
* telemetry refactor
* fix imports
* update protocol
2021-11-08 20:00:34 -06:00
Mathew Kamkar
f3e916e2fe
Room Allocator Interface ( #161 )
...
* room allocator interface
* remove wire bind
* fix test
2021-10-28 21:02:17 -07: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
Mathew Kamkar
b212fb9a9e
Prometheus counter for Signal/RTC messages ( #139 )
2021-10-08 12:02:08 -07:00
David Zhao
3ed3afad2c
Recognize Go client in parsing
2021-09-17 16:25:47 -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
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
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
eb6e763e8d
use request context in rtc service
2021-08-30 23:27:04 -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
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
David Colburn
8a44fad307
protocol 0.8 ( #95 )
...
* protocol 0.8
* merge new selector
2021-08-27 13:16:33 -05:00
David Zhao
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
David Colburn
e3fc3397ce
move cors to middleware ( #54 )
...
* move cors to middleware
* check for nil url
* remove snapshot
2021-07-15 18:36:54 -05:00
David Colburn
53bc65285c
connection validation
2021-07-15 14:23:17 -07:00