← Back to release summary

Deprecate and remove some nonstandard uses of RTCPeerConnection legacy methods.

Category
Realtime / Communication
Type
New or changed feature
Status
Removed (Chrome 50)
Intent stage
None

Summary

The latest version of the WebRTC spec introduces new promise-based methods for the RTCPeerConnection interface while keeping support for legacy callback-based methods. Some nonstandard uses of the legacy methods prevent the implementation of the new promise-based methods due to overloading conflicts and they are now deprecated. More specifically, calling createOffer() and createAnswer() without providing a failure callback (mandatory in the spec, but optional in Chromium) is now deprecated.

Standards & signals

Docs: https://w3c.github.io/webrtc-pc/#legacy-interface-extensions https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/createOffer https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/createAnswer

View on chromestatus.com