Created
December 29, 2024 20:35
-
-
Save dontdieych/d519ae5c7c99a937d017282d680face9 to your computer and use it in GitHub Desktop.
obs websocket toggle record pause
This file contains hidden or 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
#!/usr/bin/env python | |
import obsws_python as obs | |
# pass conn info if not in config.toml | |
cl = obs.ReqClient() | |
# Toggle the mute state of your Mic input | |
# cl.toggle_input_mute('Mic/Aux') | |
cl.toggle_record_pause() |
This file contains hidden or 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
#!/usr/bin/env python | |
import obsws_python as obs | |
# pass conn info if not in config.toml | |
cl = obs.ReqClient() | |
# Toggle the mute state of your Mic input | |
# cl.toggle_input_mute('Mic/Aux') | |
cl.toggle_record() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There is also
start/stop_record
andpause/resume_record
method.