[webrtc-pc] RTCPeerConnectionIceEvent constructor validation

soareschen has just created a new issue for https://github.com/w3c/webrtc-pc:

== RTCPeerConnectionIceEvent constructor validation ==
In the description for `RTCPeerConnectionIceEvent`:

> When firing an RTCPeerConnectionIceEvent event that contains a RTCIceCandidate object, it must include values for both sdpMid and sdpMLineIndex.

It is not very clear when does the requirement applies. Does this mean that the constructor would perform the validation and throw an error if either `sdpMid` or `sdpMLineIndex` is null? Or does this mean that an `RTCPeerConnectionIceEvent` event object that is fired from the `icecandidate` event is guaranteed by the browser to always have both `sdpMid` and `sdpMLineIndex` be not null?

Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/1232 using your GitHub account

Received on Monday, 22 May 2017 04:46:21 UTC