Skip to content

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

hot fix api.executeCommand

Gubin, Maksim9aa7f80e82b0
diff --git a/modules/API/API.js b/modules/API/API.js
index 91c4ca622d..098774249e 100644
--- a/modules/API/API.js
+++ b/modules/API/API.js
@@ -45,8 +45,8 @@ let enabled = false;
function initCommands() {
commands = {
"display-name": APP.UI.inputDisplayNameHandler,
- "toggle-audio": APP.conference.toggleAudioMuted,
- "toggle-video": APP.conference.toggleVideoMuted,
+ "toggle-audio": APP.conference.toggleAudioMuted.bind(APP.conference),
+ "toggle-video": APP.conference.toggleVideoMuted.bind(APP.conference),
"toggle-film-strip": APP.UI.toggleFilmStrip,
"toggle-chat": APP.UI.toggleChat,
"toggle-contact-list": APP.UI.toggleContactList,