Implements protocol 3 speaker updates (#120)

* Disallow AddTrack from participants that don't have the permission

* Support protocol 3 speaker updates, client info

* update protocol

* Disallow AddTrack from participants that don't have the permission

* increase wait time for GH to pass
This commit is contained in:
David Zhao
2021-09-17 11:47:13 -07:00
committed by GitHub
parent abde72a907
commit ff47301820
12 changed files with 192 additions and 139 deletions
+4 -4
View File
@@ -540,15 +540,15 @@ func (c *RTCClient) ensurePublisherConnected() error {
}
dcOpen := utils.AtomicFlag{}
c.lossyDC.OnOpen(func() {
c.reliableDC.OnOpen(func() {
dcOpen.TrySet(true)
})
if c.lossyDC.ReadyState() == webrtc.DataChannelStateOpen {
if c.reliableDC.ReadyState() == webrtc.DataChannelStateOpen {
dcOpen.TrySet(true)
}
// wait until connected
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
// wait until connected, increase wait time since it takes more than 10s sometimes on GH
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Second)
defer cancel()
for {
select {