Reputation: 51
The "official" WebRTC Samples show two parameters to RTCPeerConnection. For example:
pc1 = new RTCPeerConnection(servers, pcConstraints)
(From https://webrtc.github.io/samples/src/content/peerconnection/audio/ )
This example works. However the latest documentation for RTCPeerConnection API shows only one parameter, a list of configurations options.
What was this two-parameter version, where is it documented, and why does the sample use it even though the document shows a different form? (And how does it still work!?)
Upvotes: 1
Views: 475
Reputation: 17295
this was used to tweak some things like turning on ipv6 in chrome in the early days. It is long gone from the specification and should be removed from the samples as well.
It should be gone from the samples soon, thank you for pointing this out.
Upvotes: 2