add red codec for opus (#938)

* opus/red codec

* panic

* forward red track to nonred subscriber

* config

* clean code

* solve comments
This commit is contained in:
cnderrauber
2022-08-22 12:32:27 +08:00
committed by GitHub
parent a600dfc9e3
commit a118d21af0
10 changed files with 300 additions and 13 deletions
-3
View File
@@ -177,9 +177,6 @@ func NewWebRTCConfig(conf *config.Config, externalIP string) (*WebRTCConfig, err
{Type: webrtc.TypeRTCPFBNACK},
{Type: webrtc.TypeRTCPFBNACK, Parameter: "pli"},
},
Audio: []webrtc.RTCPFeedback{
{Type: webrtc.TypeRTCPFBNACK},
},
},
}
if rtcConf.CongestionControl.UseSendSideBWE {