Re: [webrtc-pc] RTCIceCandidate: component attribute missing?

> Perhaps the reason it was left out is because we have RTCIceTransport.component:

I don't think that's the reason. Remember that this API may also be used for remote candidates:

```
function onRemoteCandidate(candidateInit) {
  candidate = new RTCIceCandidate(candidateInit);
  // Inspect candidate's attributes for whatever reason.
  pc.addIceCandidate(candidate);
}
```

It's basically meant to offer a more convenient way of inspecting the fields in the candidate SDP string. And "component" is one of them, so I don't see any harm in adding it.

-- 
GitHub Notification of comment by taylor-b
Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/1167#issuecomment-300023224 using your GitHub account

Received on Monday, 8 May 2017 23:57:41 UTC