David Zhao
b8bda3f14b
Separate calls to Telemetry vs Prometheus room lifecycle ( #935 )
...
* Separate calls to Telemetry vs Prometheus room lifecycle
* remove unused import
2022-08-20 20:22:16 -07:00
cnderrauber
770076febf
fix resume/restart with single node mode ( #930 )
...
* fix resume/restart with single node mode
* clean comment
2022-08-18 12:46:18 +08:00
David Zhao
f09885825e
Return ServerInfo to clients on join ( #904 )
...
* checkpoint
* Return ServerInfo in join response
* also include node information
* less verbose quality score
* update go modules
2022-08-10 17:04:17 -07:00
Raja Subramanian
49cf15cdca
Fix filtering candidates ( #901 )
...
* Filter candidate after setting description
* comment
* Fix filtering candidates
- For offer/answer from remote, do filtering before setting remote
description so that Pion does not see filtered candidates
- For offer/answer originating from server, do filtering after setting
local description (comments in code) so that remote side does not
see filtered candidates.
- Make logging a little consistent and use right context.
* Comment
* TCP fallback config and UT (broken now)
* log SDP only when preferring TCP
* Remove TCP fallback test attempt
2022-08-10 10:42:46 +05:30
Raja Subramanian
c75090a0fe
Use a TTL of 1 hour for ICE config cache ( #873 )
2022-08-05 17:31:28 +05:30
Raja Subramanian
3f16018b62
Cache ICE config in room manager. ( #872 )
...
* Cache ICE config in room manager.
* mage generate
* Read ICE config within lock
2022-08-05 12:49:19 +05:30
Raja Subramanian
e624604453
Revert "ListRooms using sid ( #842 )" ( #845 )
...
This reverts commit f2e1e67e58 .
2022-07-21 14:49:41 +05:30
David Zhao
53f51c8cb0
Logging cleanup ( #843 )
...
* Logging cleanup
Changes log levels to better match significance
* fix lock
2022-07-21 00:39:49 -07:00
Raja Subramanian
f2e1e67e58
ListRooms using sid ( #842 )
...
* ListRooms using `sid`
* correct field name
* Remove contains and latest protocol
2022-07-21 11:05:33 +05:30
Raja Subramanian
52aed86080
Add remote participant context to logger ( #815 )
2022-07-07 10:44:10 +05:30
David Zhao
e30046f537
Delay room manager close to ensure correct DisconnectReason is sent ( #806 )
2022-07-03 23:38:59 -07:00
David Zhao
f1f62ddda5
Sends disconnect reason when server sends Leave request ( #801 )
...
* Sends disconnect reason when server sends Leave request
* update go.mod
2022-07-02 21:22:26 -07:00
Raja Subramanian
47b89c155f
Log reason for participant close ( #776 )
...
* Log reason for participant close
Please suggest better naming for different scenarios if something comes
to mind.
* group service requests
* incorporate feedback
* Change names in tests
2022-06-22 10:32:22 +05:30
Dan McFaul
aa0df2813f
deleting nonRtc rooms and fixing race when deleting rooms ( #721 )
2022-05-27 09:45:22 -06:00
Raja Subramanian
11fb079a4f
Catching a few more races reported by go test -race ./... ( #713 )
...
* Fix a few more races
* Make sure room store on leave has correct count
* Revert logger change to reduce diff
2022-05-25 07:32:25 +05:30
David Zhao
b7d22c4f34
Fix MessageChannel leaks ( #646 )
2022-04-22 10:53:20 -07: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
cnderrauber
f74144846b
create new subscriber datatrack after migration ( #600 )
...
* use negotiated data channel in migration case
* create subscriber data track after migration
* fix participant state update
* add participant leave log
* update protocol
2022-04-07 15:43:24 +08:00
Raja Subramanian
4696503790
Include region in ParticipantInfo ( #585 )
2022-03-31 14:57:55 +05:30
David Zhao
f2556483a3
Re-issue tokens when clients initially connect. ( #569 )
...
This ensures if they are disconnected before token is refreshed, they
could reconnect back with a valid token.
2022-03-25 23:55:19 -07:00
cnderrauber
b98b828618
throttle quality come down ( #556 )
2022-03-23 15:27:00 +08: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
cnderrauber
61ac44e5f7
Revert data track change ( #513 )
...
* Revert data track change
* clean code
2022-03-15 19:30:10 +08:00
cnderrauber
128199e634
don't send datatrack info to client ( #492 )
...
* don't send datatrack info to client
2022-03-08 17:05:26 +08:00
David Zhao
d57f76fbef
Use trackID consistently as log key ( #491 )
...
* Use trackID consistently as log key
* more useful logging for track published
2022-03-07 21:02:08 -08:00
b20132367
e5ffd38054
Remove race for creating rtc room ( #485 )
2022-03-05 00:08:13 -08:00
cnderrauber
4bc03d8435
Client configuration ( #452 )
...
* client configuration
* fix init roommanager
2022-03-03 18:26:14 +08:00
David Zhao
7a5b5dbc69
Pass back serverRegion in when participant's joining ( #479 )
...
* Pass back serverRegion in when participant's joining
* fix tests
* protocol update
2022-03-02 13:36:19 -08: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
Raja Subramanian
3117547d60
Consolidating PLI throttle ( #419 )
...
* Consolidating PLI throttle
Use the throttler in `sfu.WebRTCReceiver`.
Does change shape of config object.
* Move PLIThrottleConfig to sfu.WebRTCReceiver
* fix test compile
* Cleaning up unused stuff
* readability improvement
2022-02-08 22:50:43 +05:30
David Zhao
81521f80db
Support for custom TURN servers ( #409 )
...
Closes #271
2022-02-05 23:15:58 -08:00
David Zhao
e6c236357a
Option to disable ICE-Lite to improve compatibility ( #408 )
2022-02-05 22:57:47 -08:00
David Zhao
6f6d55345b
Use ParticipantInfo version to ensure consistency ( #399 )
...
* Use ParticipantInfo version to ensure consistency
Deprecating time.Time and avoid locking unnecessarily
* properly adjust ulimit. update protocol
* Save initial version from params
* get rid of metadata field, use grants copy
* fix test
2022-02-03 17:10:52 -08:00
David Zhao
9747243ce2
Honor autoSubscribe when subscription permissions are granted later ( #381 )
...
* Ensure autosubscribe is honored when subscription permissions were granted later
* negotiate even if no media has been added
* don't double-negotiate
2022-01-28 09:55:10 -08:00
shishirng
1e156025b4
Store client meta on participant join ( #380 )
...
* Store client meta on participant join
capture region, time_to_connect, ip, node
Signed-off-by: shishir gowda <shishir@livekit.io >
* Update proto dep
Signed-off-by: shishir gowda <shishir@livekit.io >
2022-01-27 15:44:03 -05:00
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