diff --git a/modules/API/API.js b/modules/API/API.js index 07c717ccc..59e72d9a1 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,