[webrtc-pc] addTransceiver woes

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

== addTransceiver woes ==
given the following piece of code:
const pc = new RTCPeerConnection();
const transceiver = pc.addTransceiver('audio');
.then(offer) => {
1) what is the direction in the sdp? Given that the transceivers direction is sendrecv by default should it be sendrecv? But that results in an API which is sendrecv without any track information. I would expect recvonly here.

2) what is transceiver.mid insider the promise? http://w3c.github.io/webrtc-pc/#dom-rtcpeerconnection-addtransceiver says its null initially and that changes only by setting a description. However, that means the mid value in the sdp does not match the transceivers mid.

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

Received on Wednesday, 8 November 2017 06:44:45 UTC