Remove FF check for TWCC. (#3340)
Sending 0 ID dependency descriptor was the issue.
This commit is contained in:
+2
-3
@@ -122,9 +122,8 @@ func NewWebRTCConfig(conf *config.Config) (*WebRTCConfig, error) {
|
|||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *WebRTCConfig) UpdateCongestionControl(ccConf config.CongestionControlConfig, clientInfo ClientInfo) {
|
func (c *WebRTCConfig) UpdateCongestionControl(ccConf config.CongestionControlConfig) {
|
||||||
enableTWCC := (ccConf.UseSendSideBWEInterceptor || ccConf.UseSendSideBWE) && !clientInfo.isFirefox()
|
c.Subscriber = getSubscriberConfig(ccConf.UseSendSideBWEInterceptor || ccConf.UseSendSideBWE)
|
||||||
c.Subscriber = getSubscriberConfig(enableTWCC)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *WebRTCConfig) SetBufferFactory(factory *buffer.Factory) {
|
func (c *WebRTCConfig) SetBufferFactory(factory *buffer.Factory) {
|
||||||
|
|||||||
@@ -379,7 +379,7 @@ func newPeerConnection(params TransportParams, onBandwidthEstimator func(estimat
|
|||||||
|
|
||||||
ir := &interceptor.Registry{}
|
ir := &interceptor.Registry{}
|
||||||
if params.IsSendSide {
|
if params.IsSendSide {
|
||||||
if params.CongestionControlConfig.UseSendSideBWEInterceptor && !params.CongestionControlConfig.UseSendSideBWE && !params.ClientInfo.isFirefox() {
|
if params.CongestionControlConfig.UseSendSideBWEInterceptor && !params.CongestionControlConfig.UseSendSideBWE {
|
||||||
params.Logger.Infow("using send side BWE - interceptor")
|
params.Logger.Infow("using send side BWE - interceptor")
|
||||||
gf, err := cc.NewInterceptor(func() (cc.BandwidthEstimator, error) {
|
gf, err := cc.NewInterceptor(func() (cc.BandwidthEstimator, error) {
|
||||||
return gcc.NewSendSideBWE(
|
return gcc.NewSendSideBWE(
|
||||||
@@ -482,7 +482,7 @@ func NewPCTransport(params TransportParams) (*PCTransport, error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if params.IsSendSide {
|
if params.IsSendSide {
|
||||||
if params.CongestionControlConfig.UseSendSideBWE && !t.params.ClientInfo.isFirefox() {
|
if params.CongestionControlConfig.UseSendSideBWE {
|
||||||
params.Logger.Infow("using send side BWE")
|
params.Logger.Infow("using send side BWE")
|
||||||
t.bwe = sendsidebwe.NewSendSideBWE(sendsidebwe.SendSideBWEParams{
|
t.bwe = sendsidebwe.NewSendSideBWE(sendsidebwe.SendSideBWEParams{
|
||||||
Config: params.CongestionControlConfig.SendSideBWE,
|
Config: params.CongestionControlConfig.SendSideBWE,
|
||||||
|
|||||||
Reference in New Issue
Block a user