Question / Help Control OBS from local machine like websocket?

cg13

New Member
Hello. I am using the plugin Websocket to control OBS but I'm having trouble controlling it from the local machine. I've had to install it on a secondary server to make the connection. This works just fine. The problem is that I need to trigger it from the machine OBS resides on. I've tried using cURL but I get "there is no socket available" error but my cURL script works well.

Is there anyway I can control OBS locally but without using hotkeys? Or is it possible to install Websocket to work on localhost? I haven't been able to accomplish this.

BTW Hotkeys don't offer enough checks like Websocket. Example, trigger a script and return the status of the scene changes. Or start the recording and have it return "recording already started".

Thank you for your help!
 
You should have no problem connecting to the websocket server of the obs-websocket plugin on your local machine. Try "localhost" or "127.0.0.1".
 

cg13

New Member
You should have no problem connecting to the websocket server of the obs-websocket plugin on your local machine. Try "localhost" or "127.0.0.1".

Thank you. That worked in the browser. Now the issue is that I can't get it to work from a bat file. Do you have any insight into this? I wonder if this process isn't allowing the javascript to run whereas it would through a browser.

Thank you again!

start /MIN "" "C:\WampDeveloper\Components\Php\php.exe" C:\WampDeveloper\Websites\localsite.com\webroot\video_api\video_audio.php
exit
 

BarrySDCA

New Member
Thank you. That worked in the browser. Now the issue is that I can't get it to work from a bat file. Do you have any insight into this? I wonder if this process isn't allowing the javascript to run whereas it would through a browser.

Thank you again!

start /MIN "" "C:\WampDeveloper\Components\Php\php.exe" C:\WampDeveloper\Websites\localsite.com\webroot\video_api\video_audio.php
exit

Hello,

Would you mind please sharing your code to change scenes from a PHP script? I just need to change scenes, nothing too involved. Trying to get up to speed here but rather just find a script I can adjust as needed.

thanks much
 
Top