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

selectedCandidatePair once stop() has been called #11

Closed steveanton closed 6 years ago

steveanton commented 6 years ago

When stop() is called, should selectedCandidatePair be cleared to null or retained at whatever its last value was?

aboba commented 6 years ago

In ORTC (see: http://draft.ortc.org/#dom-rtcicetransport-getselectedcandidatepair ) it says:

"If there is no selected pair yet, or consent [RFC7675] is lost on the selected pair, NULL is returned."

Based on the above, I'd say that once stop() is called, consent will expire and selectedCandidatePair will be cleared to null.

steveanton commented 6 years ago

Since getSelectedCandidatePair is described in WebRTC-PC and affects the WebRTC 1.0 RTCIceTransport, I've opened a spec issue there: https://github.com/w3c/webrtc-pc/issues/1981

Closing in favor of that issue.