obs websocket python
AI 回答
由 glm-4-flash 生成 · 仅供参考,请自行核实
1. 使用`websocket-client`库实现Python中的OBS WebSocket连接。
2. 安装库:`pip install websocket-client`
3. 连接OBS:`ws = websocket.create_connection("ws://localhost:4444")`
4. 发送命令:`ws.send("{'op': 'request', 'args': {'request-type': 'get scenes'}}")`
5. 接收响应:`response = ws.recv()`
6. 断开连接:`ws.close()`
2. 安装库:`pip install websocket-client`
3. 连接OBS:`ws = websocket.create_connection("ws://localhost:4444")`
4. 发送命令:`ws.send("{'op': 'request', 'args': {'request-type': 'get scenes'}}")`
5. 接收响应:`response = ws.recv()`
6. 断开连接:`ws.close()`
没有找到「obs websocket python」相关的内容
建议:检查关键词是否有错别字,或换一个更常见的说法。