def test_connect(): ws.call(requests.StartStopRecording()) stream = ws.call(requests.GetStreamingStatus()) emit('data', { 'livestate': stream.getStreaming(), 'recordstate': stream.getRecording() })
def CambiarGrabacion(self, opciones=None): """Envia solisitud de cambiar estado de Grabacion.""" if self.Conectado: logger.info("Cambiando[Grabacion]") self.OBS.call(requests.StartStopRecording()) else: logger.info("OBS no Conectado") self.Notificar("OBS No Conectado")
def recordingControl(address): controlType = removePrefix(address, '/recording/') if controlType == 'start': ws.call(requests.StartRecording()) elif controlType == 'stop': ws.call(requests.StopRecording()) elif controlType == 'toggle': ws.call(requests.StartStopRecording())
def ToggleRecording(self): try: self.ws.call(requests.StartStopRecording()) except Exception as e: print(e)
def Stream(client, Action): status = client.call(requests.GetStreamingStatus()).getRecording() client.call(requests.StartStopRecording(not status))
def CambiarGrabacion(self): if self.OBSConectado: print("Cambiando estado Grabacion") self.ConeccionOBS.call(requests.StartStopRecording()) else: print("No se encontro OBS")
def Recording_Toggle(self, *args, **kwargs): try: self.ws.call(requests.StartStopRecording()) PrintWithTime(f"Toggled recording") except Exception as e: PrintWithTime(f"Couldn't toggle recording. Error : {e}")