Skip to content

Commit 1caabbb

Browse files
committed
Add options for min and max target rate
Allows configuration for minimum and maximum target bitrates calculated by GCC.
1 parent 20e7ecf commit 1caabbb

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

pkg/gcc/send_side_bwe.go

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,22 @@ func SendSideBWEInitialBitrate(rate int) Option {
6565
}
6666
}
6767

68+
// SendSideBWEMaxBitrate sets the initial bitrate of new GCC interceptors
69+
func SendSideBWEMaxBitrate(rate int) Option {
70+
return func(e *SendSideBWE) error {
71+
e.maxBitrate = rate
72+
return nil
73+
}
74+
}
75+
76+
// SendSideBWEMinBitrate sets the initial bitrate of new GCC interceptors
77+
func SendSideBWEMinBitrate(rate int) Option {
78+
return func(e *SendSideBWE) error {
79+
e.minBitrate = rate
80+
return nil
81+
}
82+
}
83+
6884
// SendSideBWEPacer sets the pacing algorithm to use.
6985
func SendSideBWEPacer(p Pacer) Option {
7086
return func(e *SendSideBWE) error {

0 commit comments

Comments
 (0)