Automate switching camera angles and video/audio mute on the Streamyard video streaming service
Based on this original script by rothgar.
- Use Chrome.
- Install the TamperMonkey Chrome extension.
- Open the StreamYard website, log into your StreamYard account and open a new broadcast. There is no need to go live.
- Select TamperMonkey from the extension menu top right on Chrome.
- Select 'Create New Script' from the TamperMonkey menu.
- replace the template script by pasting in this TamperMonkey script from this repository.
- Save the TamperMonkey cript (File->Save).
- Reload the StreamYard page and enter the studio
The script implements the following keys:
- SHIFT CTRL COMMAND Q - switches the microphone mute on and off
- SHIFT CTRL COMMAND W - switches the camera on and off
- SHIFT CTRL COMMAND E - switches to the comments
- SHIFT CTRL COMMAND R - switches to the banners
- SHIFT CTRL COMMAND T - switches to the brand
- SHIFT CTRL COMMAND Y - switches to the private chat
Should be self explanatory in the code how to change the keys and modifiers.
You can set up your Elgato StreamDeck or controller to send the keys you set up in the script.
This will now control Streamyard as long as Chrome has the focus. If you want to be able to control Streamyard whilst other apps have the focus you can do so with AutoHotkey, as on this article:
https://techdailychronicle.com/managing-streamyard-using-the-elgato-stream-deck/
Look for the heading near the bottom of the page: 'Creating global hotkeys using AutoHotkey'
Thanks to Elbert Grootenboer for providing the instructions on which this updated script is based.

