Close subscriber PC after a wait to aid in migration. (#979)

* Close subscriber PC after a wait to aid in migration.

* mage generate
This commit is contained in:
Raja Subramanian
2022-09-03 01:16:51 +05:30
committed by GitHub
parent c75f38bce6
commit d13c4be923
5 changed files with 138 additions and 2 deletions
+9 -1
View File
@@ -153,6 +153,14 @@ func (t *TransportManager) Close() {
t.subscriber.Close()
}
func (t *TransportManager) HaveAllTransportEverConnected() bool {
return t.publisher.HasEverConnected() && t.subscriber.HasEverConnected()
}
func (t *TransportManager) SubscriberClose() {
t.subscriber.Close()
}
func (t *TransportManager) OnPublisherICECandidate(f func(c *webrtc.ICECandidate) error) {
t.publisher.OnICECandidate(f)
}
@@ -443,7 +451,7 @@ func (t *TransportManager) SubscriberAsPrimary() bool {
}
func (t *TransportManager) GetICEConnectionType() types.ICEConnectionType {
return t.getTransport(true).getICEConnectionType()
return t.getTransport(true).GetICEConnectionType()
}
func (t *TransportManager) getTransport(isPrimary bool) *PCTransport {