Supports client protocol 3 - subscriber as primary (#110)

* use subscriber connection as primary whenever possible

* backwards compat for data messages

* bump protocol version
This commit is contained in:
David Zhao
2021-09-09 00:53:15 -07:00
committed by GitHub
parent 2a3fb5f0e7
commit 614ede2edc
8 changed files with 64 additions and 22 deletions
+1 -1
View File
@@ -54,7 +54,7 @@ func TestICEStateChange(t *testing.T) {
p.onClose = func(participant types.Participant) {
close(closeChan)
}
p.handlePublisherICEStateChange(webrtc.ICEConnectionStateFailed)
p.handlePrimaryICEStateChange(webrtc.ICEConnectionStateFailed)
select {
case <-closeChan: