Hello, is it possible that the obs-websocket 4.x protocol is no longer available? Does anyone have a copy of it? Thank you
Error 404
Error 404
Hola, cuando estara disponible para la version 28 del OBS, porque la que esta en la pagina no funcionaPalakis presentó un nuevo recurso:
Websocket plugin - Control remoto de su OBS Studio con Websockets
Leer más sobre este recurso...
Ya no hace falta, OBS incorpora websocket v5, pero si tienes apps antiguas que necesiten el 4.9.1 tienes que descargarte esta version https://github.com/obsproject/obs-w...oject/obs-websocket/releases/tag/4.9.1-compatHola, cuando estara disponible para la version 28 del OBS, porque la que esta en la pagina no funciona
Hello, is it possible that the obs-websocket 4.x protocol is no longer available? Does anyone have a copy of it? Thank you
Error 404
Não precisa voltar para o v27 do OBS, use obs-websocket 4.9.1-compat. Eu uso para conectando o Deckboard.I've had to revert to OBS v27 as the integrated WebSockets does not sustain a connection. I know this has been reported elsewhere.
I've even tried v28.01 but without success. Is this being actively worked on?
Hello I tried making a simple website controlling my OBS and followed Barabba's instruction, but it doesn't work for me.If it may sound interesting for someone, it's possibile to change scenes from an http page though clicking an http link, I've realized a mosaic on a static web page and I can swtich cameras from any device, by browser.
The client and server (websoket obs) should be present on the same network, or on internet if you properly NAT the websocket port (I suggest you to use higher unknow port namber against attacks.
In the http server there should be placed the websockets client, a .js file, I attach it here. In the html should be present:
Code:<!DOCTYPE html> <html lang="en"> <head> <script type="text/javascript" src="http://192.168.24.2/OBS-WebSocket.js"></script> <title>WEBSOCKET TEST</title> </head> <body> <a align="center" href="#" onclick="setCurrentScene('SCENE-NAME-ON-OBS')">TEST</a> <script> function setCurrentScene(scenename) { const obs = new OBSWebSocket(); obs.connect({address: '192.168.24.2:4444' }); obs.on('ConnectionOpened', () => { obs.send('SetCurrentScene', { 'scene-name': scenename }); }); } </script> </body> </html>
I also tried a simple way to connect (without the obs-websocket.js) and that works...at least the connection. The scene switch of course not :(<!DOCTYPE html>
<html lang="en">
<head>
<script type="text/javascript" src="obs-websocket.js"></script>
<title>WEBSOCKET TEST</title>
</head>
<body>
<a href="#" onclick="setCurrentScene('Szene 2')">TEST</a>
<script>
function setCurrentScene(scenename) {
const obs = new OBSWebSocket();
obs.connect({address: '192.168.178.91:4455'
});
obs.on('ConnectionOpened', () => {
obs.send('SetCurrentScene', {
'scene-name': scenename
});
});
}
</script>
</body>
</html>
const ws = new WebSocket("ws://192.168.178.91:4455");
ws.addEventListener("open", () => {
console.log("connected!");
});
function ka(scenename){
ws.send('SetCurrentScene', {
'scene-name': scenename
});
}
Ok I solved it by downgrading to OBS 27 and by using the websocket plugin 4.8.Hello I tried making a simple website controlling my OBS and followed Barabba's instruction, but it doesn't work for me.
That's my code:
I also tried a simple way to connect (without the obs-websocket.js) and that works...at least the connection. The scene switch of course not :(
Sounds like you've probably got a configuration issue somewhere. Many clients will endlessly try to reconnect after failing to authenticate because they don't have any built-in functionality to show an error dialog.I've had to revert to OBS v27 as the integrated WebSockets does not sustain a connection. I know this has been reported elsewhere.
I've even tried v28.01 but without success. Is this being actively worked on?
probably didn't get the correct password sent. obs will disconnect if you send any command without properly doing the password sequence firstI am experiencing constant disconnections from the OBS WebSocket server. Even though I am able to connect successfully using tools like Insomnia and Python, as soon as I try to send any requests, the server disconnects. I have tried this on multiple computers and networks, ruling out issues with firewall or software version. I have also tried enabling WebSocket debugging, but no errors are reported. Any suggestions on how to resolve this issue?
ty for your answer, ive rechecked but my password is good. everything is correctprobably didn't get the correct password sent. obs will disconnect if you send any command without properly doing the password sequence first
<!DOCTYPE html>
<html>
<head>
<title>OBS Text Update</title>
</head>
<body>
<div>
<label for="textSource">Text Source:</label>
<input type="text" id="textSource" value="test">
</div>
<div>
<label for="newText">New Text:</label>
<input type="text" id="newText" value="1">
</div>
<div>
<button id="updateText">Update Text</button>
</div>
<script src="https://cdn.jsdelivr.net/npm/obs-websocket-js/dist/obs-websocket.min.js"></script>
<script>
const obs = new OBSWebSocket();
document.getElementById('updateText').addEventListener('click', async () => {
try {
await obs.connect({
address: 'localhost:4444',
password: 'passwd'
});
console.log(`Connected to OBS Studio!`);
const sourceName = document.getElementById('textSource').value;
const newText = document.getElementById('newText').value;
const response = await obs.send('SetTextGDIPlusProperties', {
'source': sourceName,
'text': newText
});
if (response.status === 'ok') {
console.log(`Text updated successfully for source: ${sourceName}`);
} else {
console.error(`Error updating text: ${JSON.stringify(response, null, 2)}`);
}
} catch (error) {
console.error(`Failed to connect to OBS Studio: ${error}`);
} finally {
obs.disconnect();
console.log(`Disconnected from OBS Studio.`);
}
});
</script>
</body>
</html>