Credentials
To get Video Encoding up and running, you’ll first need to sign up for an account on Mux. Mux has the ability to setup many different environments with different access keys and other settings. This is great if you want to setup an environment for development, testing and production. For the purpose of this documentation, we’ll assume you are only using one environment. if you do setup multiple environments, you’ll want to use environment variables to avoid having to update your Media Cloud settings.
Token ID / Token Secret
You can generate your Token ID and Token Secret on the Access Tokens section of your Mux settings. Click on Generate new token and in the subsequent screen, make sure Full Access is checked in the Mux Video section. If you want video analytics, check Read in the Mux Data section. Click on Generate Token and make a note of the Token ID and Token Secret on the next screen. The Token Secret will only be shown to you once, so if you forget it or didn’t write it down, you’ll have to generate a new token.
Web Hook URL / Web Hook Secret
Mux works by sending events about the encoding process to Media Cloud through a webhook. For Mux to work, your site must be publicly accessible. If it’s not, for example you are working in a local development environment, you will need to use something like ngrok.io to make it publicly accessible while you test your local development site. The Web Hook URL field shows you the URL for Media Cloud’s web hook. Use this value when setting up your web hook in Mux. The Web Hook Secret is the signing secret that Mux generates after you create the hook.
Environment Key
To track analytics with Mux, you’ll need to specify the environment key which you can find in your environment settings in your Mux dashboard.