Small project to switch overlays of a streaming program depending on what state Dota 2 is in. Can be used for much else, since switching is done by sending global hotkeys
OBS Remote would enable easier switching of scenes and overlays and would give feedback.
This could be used to react to user inputs, like waiting for a dota-scene before switching, to allow intros, views of the browser, etc, whereas now dota2_ols just interrupts everything if a change is detected in Dota 2.
Problem:
Websocket-Protocol reverseengineering from obs_remote documentation
python-websockets for python 2.7 does not support everything and may be insufficient for the task
the complete websockets-implementation requires python3.4
Right now, the hero-selection state only brings up the draft-overlay.
In spectator-mode, all drafts look the same, but while playing yourself, Hero-Selection looks different than a draft in spectator mode and differentiates between All Pick, Captains Mode, Captains Draft, etc.
If in HERO_SELECTION state, write a detector distinguishing between all possible Pick and Draft states