MUX is a Craft CMS plugin used to upload and manage videos using the MUX API.
This plugin requires Craft CMS 5.0.0 or later.
To install MUX, follow these steps:
-
Open your terminal and go to your Craft project:
cd /path/to/project
-
Then tell Composer to load the plugin:
composer require rocket-park/mux
-
Install the plugin via
./craft install/plugin mux
via the CLI, or in the Control Panel, go to Settings → Plugins and click the “Install” button for MUX.
MUX works on Craft 5.x.
Signup For MUX Account
You must obtain a MUX Token ID & Token Secret from your MUX environment access tokens page.
"An environment represents the highest grouping of data you want to combine and compare within. Multiple websites/apps or video platforms can use the same environment, but we suggest not combining staging and production data." - MUX
The plugin has a console command to sync data from MUX to CRAFT.
php craft mux/sync/all
In the MUX settings a webhook can be added to inform the plugin of asset updates. Include the following endbpoint in the MUX webhook control pannel.
https://site.com/actions/mux/webhooks/mux-webhooks
Some things to do, and ideas for potential features:
- Organization of video - Allow for folders or sections to organize videos.
- Webhook verification - Verify the webhook is coming from MUX via their Webhook Signing Secret.
- Integration of MUX Data - Allow for the integration of MUX data into the Craft CMS.
Brought to you by Rocket Park