Skip to content

Commit 21bdbf3

Browse files
committed
audio enabled
1 parent acb15ac commit 21bdbf3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/room.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const Room = (props) => {
3939

4040
useEffect(() => {
4141
socketRef.current = io.connect("https://43e9c7ab.ngrok.io");
42-
navigator.mediaDevices.getUserMedia({ video: videoConstraints, audio: false }).then(stream => {
42+
navigator.mediaDevices.getUserMedia({ video: videoConstraints, audio: true }).then(stream => {
4343
userVideo.current.srcObject = stream;
4444
socketRef.current.emit("join room", roomID);
4545
socketRef.current.on("all users", users => {

0 commit comments

Comments
 (0)