Skip to content

Commit

Permalink
Merge pull request #938 from nextcloud/fix-local-audio-and-video-not-…
Browse files Browse the repository at this point in the history
…disabled-when-not-available

Fix local audio and video not disabled when not available
  • Loading branch information
Ivansss authored Jun 6, 2018
2 parents 8aa29fd + 1b2a838 commit 86f1310
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions js/webrtc.js
Original file line number Diff line number Diff line change
Expand Up @@ -1042,10 +1042,12 @@ var spreedPeerConnectionTable = [];
}

if (!OCA.SpreedMe.webrtc.webrtc.isAudioEnabled()) {
app.disableAudio();
app.hasNoAudio();
}

if (!OCA.SpreedMe.webrtc.webrtc.isVideoEnabled()) {
app.disableVideo();
app.hasNoVideo();
}
});
Expand Down

0 comments on commit 86f1310

Please sign in to comment.