- From: Harald Alvestrand <hta@google.com>
- Date: Wed, 5 Jan 2022 10:37:38 +0100
- To: "public-webrtc@W3.org" <public-webrtc@w3.org>
Received on Wednesday, 5 January 2022 09:38:04 UTC
Apologies - this should have gone to discuss-webrtc; it is not a W3C standards concern. On Wed, Jan 5, 2022 at 9:23 AM Harald Alvestrand <hta@google.com> wrote: > If you don't use WebRTC from C++, or don't remove tracks, you can stop > reading now. > > The signature of the RemoveTrack function was: > > virtual bool RemoveTrack(RtpSenderInterface* sender) > > This failed to return an error stating what the problem was, and did not > require the caller to hold a reference to the sender being disconnected. > The new signature we want people to use is > > virtual RTCError RemoveTrackOrError( > rtc::scoped_refptr<RtpSenderInterface> sender) > > The addition of "OrError" is required because C++ doesn't permit > overloading on return value. > > The old function is now marked Deprecated, and will eventually be removed > (no earlier than Jan 19, 2022). > > Harald > >
Received on Wednesday, 5 January 2022 09:38:04 UTC