Re: [webrtc-pc] Need something such as rtpSender.reset() (#2087)

> stop() + addTransceiver(track, params) will create a new transceiver. It uses code already present.
> A reset() that doesn't create a new transceiver is a new code path.
> If you keep the MID, then you're telling the other guy to keep his transceiver, even though it's being renegotiated - which means that you can't change # of layers - which was the original point.
> again: Why do you think you need this?

In my simplified use case, I've a PeerConnection I just use for sending media. I want to send a video track, "close" it, then send a new video track without having to reuse previous RtpSender parameters (`encodings`, `mid`, etc). Well, I don't care much about reusing previous `a=mid` or not. In addition I'd like that my local SDP does not grow every time I close a transceiver and add a new one.

So if I understand your text above, calling `transceiver.stop()` (not implemented in Chrome BTW) and later call `pc.addTransceiver()` I would get a new `RtcTransceiver` instance (of course) and the previously stoped m= section would be reused, now with a fresh RtpSender and even with a new `a=mid`. Is that right?

GitHub Notification of comment by ibc
Please view or discuss this issue at using your GitHub account

Received on Thursday, 31 January 2019 15:11:25 UTC