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:
@@ -31,6 +31,29 @@ const (
|
||||
|
||||
// ------------------------------------------------
|
||||
|
||||
type BWEType int
|
||||
|
||||
const (
|
||||
BWETypeNone BWEType = iota
|
||||
BWETypeRemote
|
||||
BWETypeSendSide
|
||||
)
|
||||
|
||||
func (b BWEType) String() string {
|
||||
switch b {
|
||||
case BWETypeNone:
|
||||
return "NONE"
|
||||
case BWETypeRemote:
|
||||
return "REMOTE"
|
||||
case BWETypeSendSide:
|
||||
return "SEND_SIDE"
|
||||
default:
|
||||
return fmt.Sprintf("%d", int(b))
|
||||
}
|
||||
}
|
||||
|
||||
// ------------------------------------------------
|
||||
|
||||
type CongestionState int
|
||||
|
||||
const (
|
||||
@@ -55,6 +78,8 @@ func (c CongestionState) String() string {
|
||||
// ------------------------------------------------
|
||||
|
||||
type BWE interface {
|
||||
Type() BWEType
|
||||
|
||||
SetBWEListener(bweListner BWEListener)
|
||||
|
||||
Reset()
|
||||
|
||||
Reference in New Issue
Block a user