Fix: Unable to reconnect to obs
This commit is contained in:
parent
0b719a4352
commit
5898fae1e9
|
@ -64,7 +64,7 @@ class OBSActionBase(ActionBase):
|
||||||
|
|
||||||
def reconnect_obs(self):
|
def reconnect_obs(self):
|
||||||
print("reconnecing obs")
|
print("reconnecing obs")
|
||||||
self.PLUGIN_BASE.obs.connect_to(host=self.PLUGIN_BASE.get_settings()["ip"], port=self.PLUGIN_BASE.get_settings()["port"], password=self.PLUGIN_BASE.get_settings()["password"], timeout=3, legacy=False)
|
self.PLUGIN_BASE.backend.connect_to(host=self.PLUGIN_BASE.get_settings()["ip"], port=self.PLUGIN_BASE.get_settings()["port"], password=self.PLUGIN_BASE.get_settings()["password"], timeout=3, legacy=False)
|
||||||
|
|
||||||
if self.PLUGIN_BASE.backend.get_connected():
|
if self.PLUGIN_BASE.backend.get_connected():
|
||||||
self.status_label.set_label("Successfully connected to OBS")
|
self.status_label.set_label("Successfully connected to OBS")
|
||||||
|
|
|
@ -43,7 +43,10 @@ class Backend(BackendBase):
|
||||||
def toggle_record_pause(self):
|
def toggle_record_pause(self):
|
||||||
self.OBSController.toggle_record_pause()
|
self.OBSController.toggle_record_pause()
|
||||||
|
|
||||||
|
def connect_to(self, *args, **kwargs):
|
||||||
|
self.OBSController.connect_to(*args, **kwargs)
|
||||||
|
|
||||||
|
print("init backend")
|
||||||
backend = Backend()
|
backend = Backend()
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue