tso / sc2-auto-scene-switcher

StreamLabs OBS SC2 Auto Scene Switcher

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sc2-auto-scene-switcher

This is a StreamLabs OBS app which polls the StarCraft II Client API to determine what the current streamer is doing in StarCraft (In game? In a replay? Out of game?) and transitions to the desired scene.

How to use

Add the app in StreamLabs OBS and run the program to proxy requests. You can download the proxy program here. It will run in your system tray with this icon: logo.

You'll probably get some security warning about untrusted code for the proxy. If you know how I can solve that for people let me know!

Why do we need this weird proxy thing?

Streamlabs OBS apps are served as HTML/JS on a different origin than the StarCraft II Client API, so we're forced to respect CORS. I'm unsure of any way of getting around this other than having a program proxy requests to the StarCraft II Client API and adding the header Access-Control-Allow-Origin="*" to the response.

About

StreamLabs OBS SC2 Auto Scene Switcher

License:MIT License


Languages

Language:Go 80.2%Language:JavaScript 9.5%Language:HTML 7.4%Language:CSS 2.9%