W3C home > Mailing lists > Public > public-webrtc@w3.org > July 2017

[webrtc-pc] We forgot about {offerToReceiveAudio: false, offerToReceiveVideo: false}

From: jan-ivar via GitHub <sysbot+gh@w3.org>
Date: Fri, 07 Jul 2017 04:22:36 +0000
To: public-webrtc@w3.org
Message-ID: <issues.opened-241153792-1499401354-sysbot+gh@w3.org>
jan-ivar has just created a new issue for https://github.com/w3c/webrtc-pc:

== We forgot about {offerToReceiveAudio: false, offerToReceiveVideo: false} ==
The legacy [offerToReceive](http://w3c.github.io/webrtc-pc/#dom-rtcofferoptions-offertoreceiveaudio) section only covers how we used to set `"recvonly"`:
```js
pc.createOffer({offerToReceiveAudio: true});
```
but not how we used to set `"sendonly"`:
```js
pc.addStream(stream);
pc.createOffer({offerToReceiveAudio: false});
```

Try it with this [fiddle](https://jsfiddle.net/jib1/1h8mr8fw/). Was this omitted on purpose?

Having it implicitly call `setDirection("sendonly")` might suffice.

Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/1461 using your GitHub account
Received on Friday, 7 July 2017 04:22:42 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:18:34 UTC