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
This commit is contained in:
Raja Subramanian
2022-02-08 22:50:43 +05:30
committed by GitHub
parent fee3009853
commit 3117547d60
7 changed files with 62 additions and 117 deletions
+1 -1
View File
@@ -242,7 +242,7 @@ func (r *RoomManager) StartSession(ctx context.Context, roomName livekit.RoomNam
AudioConfig: r.config.Audio,
ProtocolVersion: pv,
Telemetry: r.telemetry,
ThrottleConfig: r.config.RTC.PLIThrottle,
PLIThrottleConfig: r.config.RTC.PLIThrottle,
CongestionControlConfig: r.config.RTC.CongestionControl,
EnabledCodecs: room.Room.EnabledCodecs,
Grants: pi.Grants,