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
+11
View File
@@ -0,0 +1,11 @@
package rtc
import "github.com/livekit/protocol/livekit"
type ClientInfo struct {
*livekit.ClientInfo
}
func (c ClientInfo) SupportsAudioRED() bool {
return c.ClientInfo.Browser != "firefox" && c.ClientInfo.Browser != "safari"
}