the_bkp
Hectopat
- Katılım
- 26 Haziran 2019
- Mesajlar
- 1.231
- Çözümler
- 7
Arkadaşlar çıldırmak üzereyim. OBS websocket diye bir şey varmış bağlanıyor gibi de ama kaydı başlatmıyor nasıl yapacağım bunu?
Çıktı:
Python:
import sys
import time
import logging
logging.basicConfig(level=logging.DEBUG)
sys.path.append('../')
from obswebsocket import obsws, events, requests # noqa: E402
host = "localhost"
port = 4455
ws = obsws(host, port)
ws.connect()
ws.call(requests.StartRecording())
time.sleep(10)
ws.disconnect()
Çıktı:
INFObswebsocket.core:Connecting to ws://localhost:4455...
INFObswebsocket.core:Connected!
DEBUGbswebsocket.core:Got Hello message: {"d":{"obsWebSocketVersion":"5.3.4","rpcVersion":1},"op":0}
DEBUGbswebsocket.core:Sending Identify message: {"op": 1, "d": {"rpcVersion": 1, "authentication": "", "eventSubscriptions": 1023}}
DEBUGbswebsocket.core:Got Identified message: {"d":{"negotiatedRpcVersion":1},"op":2}
DEBUGbswebsocket.core:Sending message id 1: {"op": 6, "d": {"requestId": "1", "requestType": "StartRecording", "requestData": {}}}
DEBUGbswebsocket.core:Got answer for id 1: {'d': {'requestId': '1', 'requestStatus': {'code': 204, 'comment': 'Your request type is not valid.', 'result': False}, 'requestType': 'StartRecording'}, 'op': 7