W3C home > Mailing lists > Public > public-webrtc@w3.org > April 2015

Proposal: offerDataChannel in RTCOfferOptions

From: Benjamin Schwartz <bemasc@google.com>
Date: Mon, 27 Apr 2015 18:01:04 -0400
Message-ID: <CAHbrMsBLVCLA9efQdnxeyer0+QoGHg-pa1v85g+S5cBnsnjN+g@mail.gmail.com>
To: "public-webrtc@w3.org" <public-webrtc@w3.org>
Currently, RTCPeerConnection has "offerToReceiveVideo" in the
RTCOfferOptions, which is a convenience to allow creating an offer with a
m-line for video without first having to attach a video MediaStreamTrack.
This is useful; without it, pages would have to attach a track and then
renegotiate, even if they only want to receive video.

However, with data channels, we don't have this convenience.  The offerer
must call createDataChannel before createOffer, or suffer a renegotiation,
even if they have no immediate need for a data channel.

So what do you think of adding a boolean "offerDataChannel" attribute to
RTCOfferOptions, parallel to "offerToReceive*"?  I think that would be
easier to use.

Received on Monday, 27 April 2015 22:01:31 UTC

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 15:19:43 UTC