This plugin for Discourse extends Onebox to add support for properly embedding Twitch streams and videos in Discourse posts. Videos embed as protocol-relative (to work around a Onebox limitation) and with auto-play disabled.
See it in action and test it out for yourself on our website.
Add the plugin's repository URL to your container's
app.yml file, for example:
- mkdir -p plugins
- git clone https://github.com/critcola/discourse-twitch-onebox.git
Rebuild the container:
./launcher rebuild app
For the plugin to apply retroactively, you'll need to rebake old posts:
./launcher enter app
The Discourse Twitch Onebox plugin is released under the MIT License.