Skip to content

Commit 34f3e9d

Browse files
committed
Merge pull request #353 from andyet/change-defaults
change some defaults
2 parents 5f4a5b3 + bdb03ca commit 34f3e9d

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"description": "World's easiest webrtc",
1010
"dependencies": {
1111
"filetransfer": "^2.0.4",
12-
"localmedia": "^1.1.2",
12+
"localmedia": "^2.0.0",
1313
"rtcpeerconnection": "^4.0.0",
1414
"webrtcsupport": "^2.2.0",
1515
"wildemitter": "1.x",

simplewebrtc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function SimpleWebRTC(opts) {
1818
enableDataChannels: true,
1919
autoRequestMedia: false,
2020
autoRemoveVideos: true,
21-
adjustPeerVolume: true,
21+
adjustPeerVolume: false,
2222
peerVolumeWhenSpeaking: 0.25,
2323
media: {
2424
video: true,

webrtc.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,10 @@ function WebRTC(opts) {
1313
debug: false,
1414
// makes the entire PC config overridable
1515
peerConnectionConfig: {
16-
iceServers: [{"url": "stun:stun.l.google.com:19302"}]
16+
iceServers: [{'urls': 'stun:stun.l.google.com:19302'}]
1717
},
1818
peerConnectionConstraints: {
19-
optional: [
20-
{DtlsSrtpKeyAgreement: true}
21-
]
19+
optional: []
2220
},
2321
receiveMedia: {
2422
offerToReceiveAudio: 1,

0 commit comments

Comments
 (0)