Kyle Redfearn
Kyle Redfearn

Reputation: 2281

In WebRTC, which ICE candidate created a successful connection?

I want to know which ICE candidate created a successful connection and is being used to transfer data between peers. I want to be able to differentiate a local (host) connection from a server reflexive to a TURN connection.

I am currently using the WebRTC native API and don't see any public APIs that allow me to know which ICE candidate successfully created a connection.

Upvotes: 0

Views: 600

Answers (1)

Philipp Hancke
Philipp Hancke

Reputation: 17360

use the getStats API. The process is similar to the one described here

Upvotes: 2

Related Questions