Hi, I was on OBS 27 and using the plugin for the websocket. I updated to OBS 30.1.2 now, and when I try to run the most basic script to perform a recording, it doesn't work. It connects and disconnects but the requests.StartRecording function clearly doesn't work. Any idea of how can I get this to work?
I am providing the code I am using:
import obswebsocket
from obswebsocket import requests
import time
websocket = obswebsocket.obsws("IP", 4455, "Password") # Change localhost, port, and password if needed
websocket.connect()
websocket.call(obswebsocket.requests.StartRecording())
time.sleep(5)
websocket.call(obswebsocket.requests.StopRecording())
time.sleep(1)
websocket.disconnect()
Thanks for the help.
I am providing the code I am using:
import obswebsocket
from obswebsocket import requests
import time
websocket = obswebsocket.obsws("IP", 4455, "Password") # Change localhost, port, and password if needed
websocket.connect()
websocket.call(obswebsocket.requests.StartRecording())
time.sleep(5)
websocket.call(obswebsocket.requests.StopRecording())
time.sleep(1)
websocket.disconnect()
Thanks for the help.