-
-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request chat commands to control OBS #148
Comments
it can be added probably without much work; just a dozen or so lines of scripting. for example. the custom.js file can talk to the <iframe> element in the dock.html page, and inject VDO.Ninja IFRAME API commands. VDO.Ninja does support browser source control of OBS, so you could I guess issue start/stop/change-scene options based on chat commands via that mechanism. Social stream uses vdo.ninja for transferring the chat messages via iframes, so it has access to that I might be able to throw something together though at some point to demo it, and to ensure it actually works, but not sure I can get to that today |
This would be an awesome feature! Just thought about it today. Any updates yet? |
I've added this now to the custom_samples.js file. social_stream/custom_sample.js Line 29 in dab7a30
You can refer to the custom.js to customize it. I've done all the hard work; you can now easily configure it to switch to a certain scene name when a certain command is triggered, if do different actions based on what scene is currently active, etc. It should be possible to start/start the stream as well via these remote commands, however I've focused just on scene changing in these cases. If you want to remotely control OBS in a different way, VDO.NInja has an IFRAME API to allow for remote control. I wrote up an example app demoing that here: https://vdo.ninja/alpha/examples/obsremote You can also easily control OBS remotely using the built-in OBS remote controller built into VDO.Ninja without any coding; see the documentation for that here: https://docs.vdo.ninja/advanced-settings/settings-parameters/and-controlobs |
Thank you! Didn't work for me unfortunately. What is the command to put in the browser source on the mac? I tried file:///Users/christian/Library/CloudStorage/OneDrive-Trainermacher/Freigegebene Dokumente/Trainings/OBS Scene Collection/social_stream-main/dock.html?session=MYSESSIONID&obscontrol&auto1 Do I put that in as a browser source in every scene? Or as a dock? Thank you! |
If you open up twitch chat or something, and you type in Make sure the custom.js file is in the same folder as dock.html. You should see the code related to !cycle near line 29. Also make sure the browser source in OBS has permissions set to advanced or high. If it still isn't working, Ill take a closer look or put out a guide |
A guide would be nice ;) My only struggle is: How do i add a browser source with parameters in OBS on Mac? |
I love social stream but now want to take it a step further and include chat commands to let my viewers change scenes in OBS for example. A lot of tools out there are for windows machines only. And I thought as the chat is already included via your awesome browser source maybe there was a way to use chat commands coming in this way, too.
The text was updated successfully, but these errors were encountered: