Re: [webrtc-pc] addTransceiver woes

Similar to (1):
```
const pc = new RTCPeerConnection();
pc.createOffer({offerToReceiveAudio: true})
.then(offer => {
  const transceiver = pc.getTransceivers()[0];
  console.log(offer.sdp);
  console.log(transceiver.direction);
})
```
I would expect a recvonly sdp but there is nothing in the legacy offerToReceive text that talks about direction.

The fix (for both this and (1) from the initial question) is probably to have addTransceiver with kind set the direction to recvonly.

-- 
GitHub Notification of comment by fippo
Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/1662#issuecomment-342727739 using your GitHub account

Received on Wednesday, 8 November 2017 06:57:27 UTC