← Back to release summary

RTCPeerConnection promise-based methods

Category
Realtime / Communication
Type
New or changed feature
Status
Enabled by default (Chrome 51)
Intent stage
None

Summary

Add promise-based versions of RTCPeerConnection methods: setLocalDescription, setRemoteDescription, addIceCandidate, createOffer and createAnswer. To be done in 2 steps. First, setLocalDescription, setRemoteDescription and addIceCandidate (anticipated in M50). The new versions of these don't have any overloading issues that can cause problems to existing code. For createOffer and createAnswer the overloading issues will be solved before adding the promised-based versions (anticipated in M51).

Standards & signals

Samples: https://webrtc.github.io/samples/

View on chromestatus.com