Do not send both asb-send-time and twcc. (#3890)
* Do not send both asb-send-time and twcc. In single peer connection mode, both extensions are set on the media engine and both would be negotiated. Unfortunately, pion/webrtc does not yet support RTPSender.SetParameters() which would allow setting specific header extensions for the sender. So, check for TWCC enabled and use it. If not, do abs-send-time if that is enabled. * check BWE type * comment
This commit is contained in:
@@ -23,6 +23,8 @@ import (
|
||||
"github.com/pion/rtcp"
|
||||
)
|
||||
|
||||
var _ bwe.BWE = (*SendSideBWE)(nil)
|
||||
|
||||
//
|
||||
// Based on a simplified/modified version of JitterPath paper
|
||||
// (https://homepage.iis.sinica.edu.tw/papers/lcs/2114-F.pdf)
|
||||
@@ -88,6 +90,10 @@ func NewSendSideBWE(params SendSideBWEParams) *SendSideBWE {
|
||||
}
|
||||
}
|
||||
|
||||
func (r *SendSideBWE) Type() bwe.BWEType {
|
||||
return bwe.BWETypeSendSide
|
||||
}
|
||||
|
||||
func (s *SendSideBWE) SetBWEListener(bweListener bwe.BWEListener) {
|
||||
s.congestionDetector.SetBWEListener(bweListener)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user