w3c / webrtc-ice

Extension to the RTCIceTransport interface defined in WebRTC 1.0
https://w3c.github.io/webrtc-ice/
Other
9 stars 14 forks source link

Distinguishing between various RTCIceTransports #13

Closed steveanton closed 4 years ago

steveanton commented 6 years ago

With this specification there will be three versions of the RTCIceTransport each with different interfaces and capabilities.

  1. WebRTC-PC version. This is just an informational surface.
  2. ORTC version. This uses an RTCIceGatherer.
  3. WebRTC-ICE version. This is similar to WebRTC-PC but adds a control surface.

How will Web developers be able to distinguish between these when they all carry the same name? Do they need to check for methods in the prototype? Keep track of where they came from?

aboba commented 6 years ago

Today, ORTC is detected by checking for the existence of the RTCIceGatherer. A way to detect the implementation of WebRTC-ICE would be if there is no RTCIceGatherer, but RTCIceTransport.start() exists.