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

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

From: Philipp Hancke via GitHub <sysbot+gh@w3.org>
Date: Sun, 10 Sep 2017 06:42:01 +0000
To: public-webrtc@w3.org
Message-ID: <issues.opened-256489479-1505025711-sysbot+gh@w3.org>
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

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