Send connection type to telemetry (#964)
* Send connection type to telemetry When connected, determine how the participant's primary connection is connected and report it in ParticipantActive event. * address feedback * fixed case where prflx is reported instead of relay * incorporate comments
This commit is contained in:
@@ -442,6 +442,10 @@ func (t *TransportManager) SubscriberAsPrimary() bool {
|
||||
return t.params.SubscriberAsPrimary
|
||||
}
|
||||
|
||||
func (t *TransportManager) GetICEConnectionType() types.ICEConnectionType {
|
||||
return t.getTransport(true).getICEConnectionType()
|
||||
}
|
||||
|
||||
func (t *TransportManager) getTransport(isPrimary bool) *PCTransport {
|
||||
pcTransport := t.publisher
|
||||
if (isPrimary && t.params.SubscriberAsPrimary) || (!isPrimary && !t.params.SubscriberAsPrimary) {
|
||||
|
||||
Reference in New Issue
Block a user