-
Notifications
You must be signed in to change notification settings - Fork 184
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
47 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Automatic Video Mute | ||
|
||
With this extension you will automatically mute your video as well anytime you mute | ||
your audio - and unmute your video again when you unmute your audio. | ||
|
||
If you manually mute/unmute your video (from call controls) it will not affect your audio mute. | ||
|
||
 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
/** | ||
* This macro makes your video mute stay in sync with your audio mute, | ||
* ie if you mute/unmute your audio, it will also mute/unmute your video. | ||
* So basically one physical button to completely mute/unmute yourself. | ||
* | ||
* Note: manually muting/unmuting video will not affect audio mute. | ||
* | ||
* @author Cyprien Simons <[email protected]> | ||
**/ | ||
|
||
import xapi from 'xapi'; | ||
|
||
xapi.Event.Audio.MicrophonesMuteStatus.on((value) => { | ||
if (value.Mute === 'On') { | ||
xapi.Command.Video.Input.MainVideo.Mute(); | ||
} else { | ||
xapi.Command.Video.Input.MainVideo.Unmute(); | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"version": "1", | ||
"profile": { | ||
"macro": { | ||
"items": [ | ||
{ | ||
"payload": "automute.js", | ||
"id": "automute", | ||
"type": "url" | ||
} | ||
] | ||
} | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters