xObsSimpleHttpControl - Simple HTTP/URL control for OBS

xObsSimpleHttpControl - Simple HTTP/URL control for OBS v1.1

YorVeX

Member
YorVeX updated xObsSimpleHttpControl - Simple HTTP/URL control for OBS with a new update entry:

v1.1 release

v1.1 (2022-05-01):
- sped up program start-up in situations where not all configured OBS instances are reachable
- added Get mode that will 1. wait for the response 2. return the raw JSON response from OBS
- URL parameters now use UTF-8 encoding
- updated URL call encryption standard to TLS v1.2, fixing "Could not create SSL/TLS secure channel" errors

Read the rest of this update entry...
 

nicwillu

New Member
Hey dude :) With websocket v5 just released, would you make a v5 compatible version of this? There exists one, but have to run a docker image. Your tool is more straightforward and would be easier to use
 

YorVeX

Member
Hey dude :) With websocket v5 just released, would you make a v5 compatible version of this? There exists one, but have to run a docker image. Your tool is more straightforward and would be easier to use
Since I am also using this for myself and actually depend heavily on it you can be sure I will. However, I am not in a hurry about this and can't give a timeline right now. In the meantime you can always use the 4.9.1-compat version of obs-websocket.
 

YorVeX

Member
Is it possible to change the url of a browser source with websockets 4.91? Been trying to figure that out with no luck
With the old WebSockets 4.9.1 compat plugin (which you need to use xObsSimpleHttpControl) you can basically change any source setting using the SetSourceSettings method and since the URL is also just a setting of the browser source it is working the same way. Here is an example to change the URL of a browser source with the name "MyBrowserSource" to https://www.example.com:
Code:
http://localhost:57297/xObsSimpleHttpControl/MyOBS/SetSourceSettings?sourceName="MyBrowserSource"&sourceType="browser_source"&sourceSettings=%7B%22url%22%3A%20%22https://www.example.com%22%7D
It looks messy because that's pretty much the "ugly hacks" part the description of this tool mentions, since you need to encode JSON into the URL. Note that depending on the URL you feed into this you might need to encode the URL itself too (e.g. if it contains characters like "=", "&" or "?"). For this you pick an URL encoding tool like this one, paste your URL, press Encode and replace the https://www.example.com part above with the encoded result you get.
 

autoharplive

New Member
With the old WebSockets 4.9.1 compat plugin (which you need to use xObsSimpleHttpControl) you can basically change any source setting using the SetSourceSettings method and since the URL is also just a setting of the browser source it is working the same way. Here is an example to change the URL of a browser source with the name "MyBrowserSource" to https://www.example.com:
Code:
http://localhost:57297/xObsSimpleHttpControl/MyOBS/SetSourceSettings?sourceName="MyBrowserSource"&sourceType="browser_source"&sourceSettings=%7B%22url%22%3A%20%22https://www.example.com%22%7D
It looks messy because that's pretty much the "ugly hacks" part the description of this tool mentions, since you need to encode JSON into the URL. Note that depending on the URL you feed into this you might need to encode the URL itself too (e.g. if it contains characters like "=", "&" or "?"). For this you pick an URL encoding tool like this one, paste your URL, press Encode and replace the https://www.example.com part above with the encoded result you get.


Wow man! You're a beast, this is awesome!

Recently my wife left me for a better programmer, maybe if I show her this she will take me back!

Thank you!
 

Pantallas_ndi

New Member
Hello! I am been trying out your application and so far it works but i have a problem that I can not launch the app on windows startup. i have tried with all the means, taskmgr, regedit, batch file, task scheduler but windows refuse to open it, you know anything about that? I am thinking about a security issue but i do not really know i have the app whitelisted and i do not really have any antivirus or something that could be blocking the launch of the app.
Thank you!
 

YorVeX

Member
Hello! I am been trying out your application and so far it works but i have a problem that I can not launch the app on windows startup. i have tried with all the means, taskmgr, regedit, batch file, task scheduler but windows refuse to open it, you know anything about that? I am thinking about a security issue but i do not really know i have the app whitelisted and i do not really have any antivirus or something that could be blocking the launch of the app.
Thank you!
I just tried, I simply created a shortcut to xObsSimpleHttpControl.exe in C:\Users\<MyUser>\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup and rebooted, it came up automatically without any issue.

Did you maybe copy the program files into a folder under one of the "Program Files" folders on drive C: or any other protected folder? You know it's protected when while trying to copy the data there Windows asks you for special permissions:
1696987268027.png


If you did, try to copy it to a location that is not protected with admin permissions, for example C:\Users\<YourUser>\xObsSimpleHttpControl - then create a shortcut to that in the startup folder I listed above.

Also please check whether the tool created any Exception_somethingsomething_datetime.txt files in its program folder at the time Windows started (look at the file date), if it did, post the contents of it here.
 

JFTiger

New Member
@YorVeX Are you still supporting this? I downloaded it and error logs says
20:41:22.784: [obs-websocket] [WebSocketServer::onClose] WebSocket client `[::ffff:192.168.1.198]:65171` has disconnected with code `4010` and reason: You appear to be attempting to connect with the pre-5.0.0 plugin protocol. Check to make sure your client is updated.
 

YorVeX

Member
@YorVeX Are you still supporting this? I downloaded it and error logs says
20:41:22.784: [obs-websocket] [WebSocketServer::onClose] WebSocket client `[::ffff:192.168.1.198]:65171` has disconnected with code `4010` and reason: You appear to be attempting to connect with the pre-5.0.0 plugin protocol. Check to make sure your client is updated.
You have to install the obs-websocket compat 4.9.1 plugin from here to use this tool and connect to that compat websocket port instead of the new one. Check the configuration in the OBS Tools menu after installation, you will have another "4.x Compat" item there, this is what you need to configure to use with xObsSimpleHttpControl:
1712368720623.png

I will probably update the tool to work with the newer 5.X versions at some point, but for the time being using the 4.x compat version should work fine to my knowledge.
 
Top