DiscourseVideo is a Discourse plugin that provides an improved video upload and playback experience using Mux.
Features include:
- Upload large videos in chunks
- Play videos via streaming so that you don't have to download the whole video to watch
- Automatic video encoding
- Videos are stored externally by Mux so that they don't take up space on your Discourse instance.
Follow the Install Plugins in Discourse guide, using git clone https://github.com/discourse/discourse-video.git as the plugin command.
You will need to have a Mux account. Then you can create a Token ID and Secret from Mux to add to your Site Settings in Discourse.
Then inside of Mux you will need to create a webhook and point it back to
https://your-discourse.example.com/discourse_video/webhook
.
If you are developing you can use a tool like ngrok to point it back to your
localhost and then add the ngrok url to the DISCOURSE_DEV_HOSTS
env variable
before starting rails.