[webrtc-extensions] Add support for negotiating datachannels in SDP (RFC8864) (#102)

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

== Add support for negotiating datachannels in SDP (RFC8864) ==
Currently in W3C we are able to negotiate datachannels either inband in DCEP, or outband by the js APP. 

https://www.w3.org/TR/webrtc/#dom-rtcdatachannelinit-negotiated

RFC8864 allows to negotiate it via SDP, which wouldn't be supported by curren API. 

Not sure if it it is a valid WebIDL, but we could have something like this:

```
enum RTCDataChannelNegotiation  {
  "decp",
  "sdp",
  "app"
};

dictionary RTCDataChannelInit {
  (boolean or RTCDataChannelNegotiation) negotiated = false;
};
```
If the `negotiated` attribute is a boolean, we keep current behaviour and if it is a `RTCDataChannelNegotiation`: 
 - `dcep` current in-band negotiation 
 - `sdp`  negotiated via SDP `dcmap` attribute as of RFC8864
 - `app`  current out-of-band negotiation 








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


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Monday, 21 March 2022 16:29:33 UTC