added datachannel negotiation variables

This commit is contained in:
harshabose
2025-07-14 03:38:59 +05:30
parent 4a0788ff70
commit cf0279fb52
2 changed files with 6 additions and 1 deletions

View File

@@ -10,3 +10,9 @@ func WithDataChannelInit(init *webrtc.DataChannelInit) Option {
return nil return nil
} }
} }
var (
OrderedTrue = true
NegotiatedTrue = true
IDOne uint16 = 1
)

View File

@@ -207,7 +207,6 @@ func (u *MultiUpdateEncoder) findBestEncoderIndex(targetBps int64) int {
func (u *MultiUpdateEncoder) switchEncoder(index int) { func (u *MultiUpdateEncoder) switchEncoder(index int) {
if index < len(u.encoders) { if index < len(u.encoders) {
fmt.Printf("swapping to %d encoder with bitrate %d\n", index, u.bitrates[index])
u.active.Swap(u.encoders[index]) u.active.Swap(u.encoders[index])
} }
} }