Skip to content

Instantly share code, notes, and snippets.

@dontdieych
Created December 29, 2024 20:35
Show Gist options
  • Save dontdieych/d519ae5c7c99a937d017282d680face9 to your computer and use it in GitHub Desktop.
Save dontdieych/d519ae5c7c99a937d017282d680face9 to your computer and use it in GitHub Desktop.
obs websocket toggle record pause
#!/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()
#!/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()
@dontdieych
Copy link
Author

There is also start/stop_record and pause/resume_record method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment