-
Notifications
You must be signed in to change notification settings - Fork 10
Constraints
Damon Oehlman edited this page Aug 15, 2013
·
2 revisions
One of the component of the rtc
module is that it makes pure RTCPeerConnection
creation a little simpler by including configuration and constraints based on common use cases.
To make use of the internal configuration and constraint aliases, you will need to use the rtc.createConnection
factory method. Let's look at a few examples of how this can be called with varying results:
When called with no options:
var conn = rtc.createConnection();
A new RTCPeerConnection
instance is created that is equivalent to running the following code:
var conn = new RTCPeerConnection({
iceServers: []
});