[webrtc-pc] behaviour of offerToReceive* set to false when there is a local track

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

== behaviour of offerToReceive* set to false when there is a local track ==
related to #1383 but that is complicated enough already.
Suppose I do this:
```
var pc = new RTCPeerConnection();
navigator.mediaDevices.getUserMedia({audio: true})
.then(stream => {
  pc.addTrack(stream.getAudioTracks()[0], stream);
  return pc.createOffer({offerToReceiveAudio: false})
})
.then(offer => {
  console.log(offer.sdp);
});
```
I want to send audio but not receive it. This means the sdp should say "sendonly".
But we currently specify this as "leave it alone".

This needs something like "if there is a transceiver for this kind set its direction to sendonly".

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

Received on Sunday, 10 September 2017 06:41:54 UTC