Skip to content

Commit

Permalink
Implemented toggle-mute FIX #9
Browse files Browse the repository at this point in the history
  • Loading branch information
g committed Nov 12, 2023
1 parent f7c894b commit 43b758e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Just a minimal API is supported
```
obs-cmd scene switch <scene>
obs-cmd scene switch @cam-front
obs-cmd toggle-mute Mic/Aux
obs-cmd recording toggle
obs-cmd streaming start
obs-cmd virtualcam start
Expand Down
6 changes: 6 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@ async fn main() -> Result<()> {
println!("Set current scene: {}", scene_name);
println!("Result: {:?}", res);
}
"toggle-mute" => {
let input_name = &args[2];
let res = client.inputs().toggle_mute(input_name).await;
println!("Result: {:?}", res);

}
"recording" => {
if args.len() < 3 {
println!("Usage: ./program recording <command>");
Expand Down

0 comments on commit 43b758e

Please sign in to comment.