Skip to content

Commit 07d8884

Browse files
committed
mute option
1 parent 3bd50c9 commit 07d8884

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Diff for: offering.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
<body>
1414

15-
<input type="checkbox" onclick="mute()">mute microphone</input>
15+
<input type="checkbox" checked onclick="mute()">mute microphone</input>
1616

1717
<video id="calleevideo" controls></video>
1818
<div id="chatlog" class="chatlog"></div>

Diff for: offering.js

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ var localStream;
77
navigator.mediaDevices.getUserMedia({ video: false, audio: true })
88
.then(function(stream) {
99
localStream = stream;
10+
mute()
1011
// localvideo.srcObject = stream;
1112
// localvideo.play();
1213
}).catch(function(err) {

0 commit comments

Comments
 (0)