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

[webrtc-pc] RTP Media API section should describe how tracks for senders/receivers relate to each other.

From: Taylor Brandstetter via GitHub <sysbot+gh@w3.org>
Date: Fri, 05 May 2017 17:03:07 +0000
To: public-webrtc@w3.org
Message-ID: <issues.opened-226633853-1494003786-sysbot+gh@w3.org>
taylor-b has just created a new issue for https://github.com/w3c/webrtc-pc:

== RTP Media API section should describe how tracks for senders/receivers relate to each other. ==
Previously, there was a 1:1 mapping between tracks added to a PeerConnection on one side and received on the other side.

The track IDs also matched (https://github.com/w3c/webrtc-pc/issues/1128).

And when you called `removeTrack`, the track on the other side would be removed and ended (https://github.com/w3c/webrtc-pc/issues/1161).

None of these things are true any more, due to the API changes to allow for "early media", transceivers, `replaceTrack`, etc.

The fundamental difference is that tracks on senders and receivers are not symmetrical. A track attached to a sender represents "a source of media being sent", whereas a track attached to a receiver represents "a stream of media received from an `RTCRtpSender` on the remote side`.

This clearly has been a source of confusion, and it's not explained in any unified way. So I'd suggest adding a paragraph to the RTP Media API section explaining this model.

Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/1169 using your GitHub account
Received on Friday, 5 May 2017 17:03:13 UTC

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