- From: jan-ivar via GitHub <sysbot+gh@w3.org>
- Date: Thu, 05 Apr 2018 02:42:55 +0000
- To: public-webrtc@w3.org
jan-ivar has just created a new issue for https://github.com/w3c/webrtc-pc: == No way to add track with stream associations to a given transceiver == While writing [this blog](https://blog.mozilla.org/webrtc/rtcrtptransceiver-explored/), I discovered transceivers only let us answer with stream-less tracks. That is, we can add a track to a given transceiver, but not with any stream associations: ```js await pc.setRemoteDescription(description); let transceiver = foo(pc); transceiver.direction = "sendrecv"; await transceiver.sender.replaceTrack(cameraStream.getVideoTracks()[0]); // no stream await pc.setLocalDescription(await pc.createAnswer()); ``` If our transceiver happens to be the first unused one of its kind in `pc.getTransceiver()`, we can use `addTrack` to do it, but this seems incomplete. There's no general way to add a track with stream associations to a transceiver in the middle of a list of unused transceivers. Any workaround using `addTrack` would lock in streams for all transceivers ahead in the list. When working with transceivers, this feels like an awkward omission, leading to contortions. Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/1826 using your GitHub account
Received on Thursday, 5 April 2018 02:43:07 UTC