RESOLVED DUPLICATE of bug 189040 164217
Should we remove legacy RTCPeerConnection callback API?
https://bugs.webkit.org/show_bug.cgi?id=164217
Summary Should we remove legacy RTCPeerConnection callback API?
youenn fablet
Reported 2016-10-31 01:00:18 PDT
Is it time to remove RTCPeerConnection callback API?
Attachments
Adam Bergkvist
Comment 1 2016-10-31 01:36:35 PDT
I don't think we can do that. These callbacks are also documented in the spec [1]. [1] https://w3c.github.io/webrtc-pc/archives/20160913/webrtc.html#legacy-interface-extensions
Alex. Gouaillard
Comment 2 2016-11-01 07:01:01 PDT
You cannot remove the API, but the specs leaves the freedom to make it but a wrapper around the promise API leaving only one implementation to maintain. See how navigator.getUserMedia is implemented (vs MediaDevices.getUserMedia)
Adam Bergkvist
Comment 3 2016-11-01 07:22:19 PDT
(In reply to comment #2) > You cannot remove the API, but the specs leaves the freedom to make it but a > wrapper around the promise API leaving only one implementation to maintain. > See how navigator.getUserMedia is implemented (vs MediaDevices.getUserMedia) This is how the RTCPeerConnection legacy callback API is implemented currently as well.
Jon Lee
Comment 4 2017-01-30 09:39:31 PST
Is there anything left here? Should we close this as WONTFIX?
youenn fablet
Comment 5 2017-01-30 12:03:05 PST
I am not sure this is WONTFIX. WebKit hasn't shipped yet the feature so we have some freedom here. The legacy APIs are wrappers around the promise-based APIs which are also evolving. Probably legacy services need to be updated according these internal changes so I would think they could/are migrating to promise-based APIs.
youenn fablet
Comment 6 2017-01-30 15:54:35 PST
WebRTC WG recently removed getStats legacy API. We should at least do that.
Sam Sneddon [:gsnedders]
Comment 7 2021-08-26 03:14:02 PDT
bug 181480 disabled it by default and bug 189040 removed it entirely; forward duping to the latter given that totally removed it *** This bug has been marked as a duplicate of bug 189040 ***
Note You need to log in before you can comment on or make changes to this bug.