Skip to content

How to get Event of 'GUI start/stop record' #61

Answered by onyx-and-iris
chenxinfeng4 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi! Thanks for your interest in the code.

The general approach to using events is as follows:

  • Fetch the precise name of the event from the docs. In this case RecordStateChanged
  • define a function with matching name, snake cased and starting with on_. In this case on_record_state_changed
  • register it with the event client using {obs.EventClient}.callback.register()

Something like this should work for your use case.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by onyx-and-iris
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #21 on July 10, 2025 21:20.