You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
parameters=simpleobsws.IdentificationParameters(ignoreNonFatalRequestChecks=False) # Create an IdentificationParameters object (optional for connecting)
9
+
10
+
ws=simpleobsws.WebSocketClient(url='ws://localhost:4455', password='NaIf6BF33LEjtpgY', identification_parameters=parameters) # Every possible argument has been passed, but none are required. See lib code for defaults.
11
+
12
+
asyncdefmake_request():
13
+
awaitws.connect() # Make the connection to obs-websocket
14
+
awaitws.wait_until_identified() # Wait for the identification handshake to complete
15
+
#set stream url and key
16
+
rdata= {
17
+
"streamServiceType" : "rtmp_custom",
18
+
"streamServiceSettings" : {
19
+
"server" : str(server),
20
+
"key" : str(key),
21
+
}
22
+
}
23
+
request=simpleobsws.Request(requestType='SetStreamServiceSettings', requestData=rdata) # Build a Request object
0 commit comments