Skip to content

Commit 6297764

Browse files
authored
Merge pull request googlecodelabs#19 from fippo/teach-the-right-thing
dont use non-spec constructs
2 parents f06a4a4 + 13ea1b2 commit 6297764

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

step-05/js/main.js

+3-5
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,14 @@ var turnReady;
1010

1111
var pcConfig = {
1212
'iceServers': [{
13-
'url': 'stun:stun.l.google.com:19302'
13+
'urls': 'stun:stun.l.google.com:19302'
1414
}]
1515
};
1616

1717
// Set up audio and video regardless of what devices are present.
1818
var sdpConstraints = {
19-
'mandatory': {
20-
'OfferToReceiveAudio': true,
21-
'OfferToReceiveVideo': true
22-
}
19+
offerToReceiveAudio: true,
20+
offerToReceiveVideo: true
2321
};
2422

2523
/////////////////////////////////////////////

step-06/js/main.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,9 @@
66

77
// var configuration = {
88
// 'iceServers': [{
9-
// 'url': 'stun:stun.l.google.com:19302'
9+
// 'urls': 'stun:stun.l.google.com:19302'
1010
// }]
1111
// };
12-
// {'url':'stun:stun.services.mozilla.com'}
1312

1413
var configuration = null;
1514

0 commit comments

Comments
 (0)