mirror of
https://github.com/harshabose/client.git
synced 2025-09-27 03:35:55 +08:00
added datachannel negotiation variables
This commit is contained in:
@@ -10,3 +10,9 @@ func WithDataChannelInit(init *webrtc.DataChannelInit) Option {
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var (
|
||||||
|
OrderedTrue = true
|
||||||
|
NegotiatedTrue = true
|
||||||
|
IDOne uint16 = 1
|
||||||
|
)
|
||||||
|
@@ -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])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user