Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

Merge pull request #487 from isymchych/video-mute-screensharing

Paweł Domase688a5cb9f1c
diff --cc conference.js
index acbecbd2f5,13958fb3f5..677fa5cfec
--- a/conference.js
+++ b/conference.js
@@@ -274,17 -316,8 +316,15 @@@ export default
* @param mute true for mute and false for unmute.
*/
muteAudio (mute) {
- //FIXME: Maybe we should create method for that in the UI instead of
- //accessing directly eventEmitter????
- APP.UI.eventEmitter.emit(UIEvents.AUDIO_MUTED, mute);
+ muteLocalAudio(mute);
},
+ /**
+ * Returns whether local audio is muted or not.
+ * @returns {boolean}
+ */
+ isLocalAudioMuted() {
+ return this.audioMuted;
+ },
/**
* Simulates toolbar button click for audio mute. Used by shortcuts and API.
*/