Re: [webrtc-pc] RTCDataChannel.id assignment

I think the spec covers all these cases (or at least intends to):

1. ID will be assigned once the DTLS role is determined.
2. ID will be assigned on creation. If it turns out that the number of streams negotiated later is too low, will be closed with an error.
3. `OperationError` thrown by `createDataChannel`.

As for DTLS role changes, we could say "only the *first* role selected matters"... Or we could just ignore this corner case, since the application always has the option of choosing IDs itself if needs to.

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

Received on Wednesday, 28 March 2018 16:54:07 UTC