mirror of
https://github.com/onyx-and-iris/duckypad-twitch.git
synced 2025-01-18 12:10:47 +00:00
hook into on_exit_started obs event.
This commit is contained in:
parent
768720e797
commit
640fb02c09
@ -46,6 +46,7 @@ class OBSWS(ILayer):
|
|||||||
self.on_stream_state_changed,
|
self.on_stream_state_changed,
|
||||||
self.on_input_mute_state_changed,
|
self.on_input_mute_state_changed,
|
||||||
self.on_current_program_scene_changed,
|
self.on_current_program_scene_changed,
|
||||||
|
self.on_exit_started,
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
except (ConnectionRefusedError, TimeoutError) as e:
|
except (ConnectionRefusedError, TimeoutError) as e:
|
||||||
@ -69,6 +70,9 @@ class OBSWS(ILayer):
|
|||||||
f"stream is {'live' if self._duckypad.stream.is_live else 'offline'}"
|
f"stream is {'live' if self._duckypad.stream.is_live else 'offline'}"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
def on_exit_started(self, _):
|
||||||
|
self.event.unsubscribe()
|
||||||
|
|
||||||
@ensure_obsws
|
@ensure_obsws
|
||||||
def call(self, fn_name, *args):
|
def call(self, fn_name, *args):
|
||||||
fn = getattr(self.request, fn_name)
|
fn = getattr(self.request, fn_name)
|
||||||
|
Loading…
Reference in New Issue
Block a user