David Colburn
6719a3c714
Updated egress rpc ( #1252 )
...
* updated egress rpc
* check if egress exists on stop
* fix static check
* remove old migration code
* rename
* regenerate, update test
* latest staticcheck
* update to psrpc 0.1.0
* fix tests
* dual write rpcs on running egress
* remove unused field
* fix race, change service for egress impl
* return nil if bus is nil
* id -> ids
* add affinityFunc to StartEgress
2022-12-22 21:03:27 -08:00
David Zhao
14de2bec9c
Fixed single-node routing breakage. ( #1209 )
...
* Fixed single-node routing breakage.
Due to a regression of a previous change, Redis was always enabled even
when no configuration was provided.
* updated go modules
2022-12-04 16:23:35 -08:00
David Zhao
12ae179be2
Configurable RoomService execution timeout ( #1206 )
...
* API execution timeout is now configurable
In certain environments, it can take longer than the default 2s to
fully execute API requests. Making execution timeout a configurable option.
* do not expose api to YAML. internal for now.
2022-12-04 10:13:09 -08:00
cnderrauber
3c907ed460
Add stats for data channel and signal ( #1198 )
...
* Add stats for data channel and signal
* Solve comment
2022-11-30 14:53:19 +08:00
cnderrauber
6711060cdb
Add enable loopback candidate option ( #1185 )
2022-11-23 16:01:36 +08:00
Benjamin Pracht
c735668f67
Use the redis.UniversalClient interface instead of *redis.Client when interacting with go-redis ( #1149 )
...
* Use the redis.UniversalClient interface instead of *redis.Client when interacting with go-redis
* Update protocol to v1.2.1
2022-11-07 17:27:28 -08:00
David Colburn
803046b882
Auto egress ( #1011 )
...
* auto egress
* fix room service test
* reuse StartTrackEgress
* add timestamp
* update prefixed filename explicitly
* update protocol
* clean up telemetry
* fix telemetry tests
* separate room internal storage
* auto participant egress
* remove custom template url
* fix internal key
* use map for stats workers
* remove sync.Map
* remove participant composite
2022-09-21 12:04:19 -07:00
David Zhao
da2525e973
for some reasons this wasn't generated before committed. ( #974 )
2022-08-31 21:35:51 -07:00
Benjamin Pracht
d8edb9b2e7
Adopt Ingress RPC interface changes ( #972 )
2022-08-31 14:14:40 -07:00
cnderrauber
c401ca58af
turn packet and bytes stats used for telemetry and load control ( #969 )
...
* stats for turn
* add connections stats
* stats for standalone turn server only
* wire update
2022-08-31 11:00:27 +08:00
Benjamin Pracht
c333b7a026
Add support for Ingress service ( #868 )
...
Also check for Join permission on ingress API calls
2022-08-04 09:48:53 -07:00
Raja Subramanian
a393d64ccc
Do not re-use transceiver when negotiation is pending. ( #862 )
2022-07-31 10:50:55 +05:30
David Colburn
7aa5888338
Keep egress info for 24h ( #856 )
...
* Keep egress info for 24h
* updates
* better version comparison
* fix test
* duplicated if
2022-07-28 20:27:59 -05:00
David Colburn
0ab4379c5c
Separate egress/ingress storage ( #855 )
2022-07-28 17:01:33 -05:00
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
David Colburn
fbbcbe77df
Remove recording ( #811 )
...
* remove recorder service
* update protocol
2022-07-05 18:39:32 -07:00
David Colburn
4be096cf74
Update egress RPC handler ( #759 )
...
* egress rpc handler
* add egress statuses
* nil redis client
* update protocol
2022-06-13 12:18:17 -07:00
David Zhao
73808a1623
Remove TrackSender.ParticipantIdentity since it's unused ( #738 )
...
Just introduced this in #736 and realized the interface change comes
with a bunch of unintended consequences, so reverting this addition.
2022-05-29 23:22:03 -07:00
Brint E. Kriebel
5a74c1695d
Add support for Redis Sentinel ( #707 )
2022-05-28 10:26:58 -07:00
David Zhao
a933f1513f
Add pprof endpoint when running in dev mode ( #708 )
2022-05-23 00:34:16 -07:00
cnderrauber
3352ee6b79
add size limit to metadata of room & participant ( #566 )
...
* add size limit to metadata of room & participant
* description in config-sample
* solve comments
2022-03-25 12:48:11 +08:00
cnderrauber
4bc03d8435
Client configuration ( #452 )
...
* client configuration
* fix init roommanager
2022-03-03 18:26:14 +08:00
Alex Beattie
96654e164a
support Redis TLS Connection ( #482 )
...
* Add TLS for Redis connection
* Update to add tls flag
2022-03-02 22:17:29 -08:00
David Zhao
7449175c8e
Fix participant update version generation. ( #477 )
...
Previously it was stuck at 1
2022-03-01 09:36:11 -08:00
David Colburn
a1bef5b18d
deadlock CI ( #475 )
...
* deadlock CI
* make sure the test fails
* remove fail check
2022-02-28 14:48:19 -08:00
Raja Subramanian
2959eebca8
Introducing OpsQueue ( #463 )
...
* Introducing OpsQueue
Creating a PR to get feedback on standardizing on this concept.
Can be used for callbacks.
Already a couple of places use this construct. Wondering if we
should standardize on this across the board.
Just changing one place to use the new struct. Another place
that I know of which uses this pattern is the telemetry package.
* atomic flag -> bool
2022-02-25 11:56:26 +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
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
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
07db1ba726
Some more files with types ( #302 )
2021-12-30 16:43:20 +05:30
David Colburn
7b0db1f344
fix recording URL requests
2021-12-29 17:46:34 -08:00
Raja Subramanian
1dcc62b569
SubscribedQualityUpdate message ( #270 )
...
* WIP commit
* SubscribedQualityUpdate message to send list of currently subscribed
qualities for a simulcast video publisher
* Correct subscriberID
* goimports
* Do quality update on add/remove of subscribed track
* do not update quality when admin mute is active
* update quality on admin unmute
* Update protocol version
* Simplify max subscribed quality loop per David's suggestion
2021-12-19 12:41:40 +05:30
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
Raja Subramanian
45690bc301
Use StreamStateChange with a single list ( #235 )
...
* Use StreamStateChange with a single list
Use enum for state change indication on associated track.
* update protocol version
2021-12-04 11:57:23 +05:30
David Colburn
c41384cd09
ActiveRecording ( #234 )
...
* ActiveRecording
* regenerate
* update to 0.10.3
* 1.17
2021-12-03 21:40:53 -08:00
Raja Subramanian
092789a08f
Stream allocator fixes ( #212 )
...
* Stream allocator fixes
- Treat simple track like simulcast track with one layer to make
it stream allocator friendly.
* Address David's comments
2021-11-27 09:22:39 +05:30
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
David Zhao
79cfc0d76a
update protocol & pion versions
2021-11-19 21:25:08 -10: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
ceae58ac20
Fixed deadlocks occurring in Receiver writeRTP ( #189 )
...
When we RLock during write cycles, the mutex spends the majority of its time
staying locked. As new participants join, they have to acquire the WLock
before downtracks could be add it.
In load test scenarios (25 participants joining together), it's common to see
goroutine dump showing MediaTrack.AddSubscriber -> DownTrack.storeDownTrack trying to acquire mutex, and never able to acquire it.
2021-11-13 22:59:53 -08:00
David Colburn
92838d75a8
Analytics events + stats ( #187 )
...
* events
* bump
* update incoming stats
* publisher stats
* outgoing rtcp
* stats
* remove unnecessary struct
* merge mediaTrack
* put comment back
2021-11-12 16:36:10 -06:00
David Zhao
749446274f
Use time.Unix instead of UnixMilli (for Go 1.15 compat)
2021-11-08 20:47:41 -08:00
David Colburn
289ebd32ff
Telemetry refactor ( #172 )
...
* telemetry refactor
* fix imports
* update protocol
2021-11-08 20:00:34 -06: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
Raja Subramanian
2d76c672e3
Use abs-send-time RTP header extension for video downstream ( #149 )
...
- Update ion-sfu to v1.20.14
- Enable `abs-send-time` for video tracks
Reference: ion-sfu PR - https://github.com/livekit/ion-sfu/pull/12
Testing:
--------
- Look at SDP offer in subscriber PC and ensure that abs-send-time is negotiated.
- Ensure that downstream packets have `abs-send-time` extension for video packets.
TODO:
-----
- Not yet setting this for audio tracks. Eventually we want to move
to TWCC. This is just a step along the way.
2021-10-19 23:46:04 +05:30
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
David Colburn and Mathew Kamkar
1d626ba053
Update turn ( #147 )
...
* more generic turn server
* public turn realm name
* support turn cert itself in config
* remove cert/key from config
* double auth handler
* generate
Co-authored-by: Mathew Kamkar <578302+matkam@users.noreply.github.com >
2021-10-18 16:14:27 -05:00
David Zhao
eba0c23375
Handle TrackInfo.Source attribute ( #146 )
...
* Support passing along Source attribute
2021-10-14 13:10:57 -07:00
Mathew Kamkar
b212fb9a9e
Prometheus counter for Signal/RTC messages ( #139 )
2021-10-08 12:02:08 -07:00