Purchase access to watch this video.

Unlock course for £159

Already purchased access? Login

Creating a Mux account

Connect GitHub

Transcript was automatically generated and may be inaccurate.

  1. Forstoring, streaming, and delivering video, we're going to be using a service
  2. called Mux.
  3. Mux is a pay as you go service offering APIs to easily transcode and stream videos on
  4. the web.
  5. To get started, we're going to need to create an account on Mux.
  6. On the Mux website, click the "Getting Start" button,
  7. and go through the process to create an account.
  8. Once you've completed registration, you'll end up on the Mux dashboard which
  9. looks like this.
  10. Mux uses assets to refer to videos. When you want to transcode and stream a
  11. video, you'll create an asset.
  12. That asset has a lifecycle that starts off in the "preparing" state,
  13. and will leave the move to the "errored" state if there's a problem or the "ready"
  14. state when the asset's being transcoded and ready to be streamed.
  15. Before we can use Mux in our application, we need to generate some keys.
  16. If we go to "Settings", "Access Tokens", click the "Generate new token" button.
  17. Leave the environment to the default, and check the "Mux Video" checkbox.
  18. Ensure "Read" and "Write" are both checked, and then click "Generate token".
  19. We're going to copy the access token ID.
  20. In our application's .env file, we're going to paste it at the bottom under
  21. MUX_CLIENT_ID.
  22. Next, open the config/services.php file, add a section for "mux".
  23. And map those environment variables to configuration keys.
  24. We now have credentials to begin interacting with Mux.
  25. In the next video, we'll upload videos from our application to Mux for Mux
  26. to process.

Resources