示例#1
0
def test_connect():
    ws.call(requests.StartStopRecording())
    stream = ws.call(requests.GetStreamingStatus())
    emit('data', {
        'livestate': stream.getStreaming(),
        'recordstate': stream.getRecording()
    })
示例#2
0
 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")
示例#3
0
文件: ObSC.py 项目: dillwishlist/ObSC
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())
示例#4
0
 def ToggleRecording(self):
     try:
         self.ws.call(requests.StartStopRecording())
     except Exception as e:
         print(e)
示例#5
0
def Stream(client, Action):
    status = client.call(requests.GetStreamingStatus()).getRecording()
    client.call(requests.StartStopRecording(not status))
示例#6
0
 def CambiarGrabacion(self):
     if self.OBSConectado:
         print("Cambiando estado Grabacion")
         self.ConeccionOBS.call(requests.StartStopRecording())
     else:
         print("No se encontro OBS")
示例#7
0
 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}")