Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

After registering Mux account successfully, you will need to set up Mux to get Access Token (Client ID and Client Secret ) and Webhook Secret

Set up Access Token

Once registered, log in to your Mux dashboard.

Navigate to "Settings": In your Mux dashboard, locate and click on the "Settings" option, typically found in the top-right corner of the page.

Image Added

Choose the Access Tokens menu or within the "Settings" section, select "Access Tokens." Here, you can manage your API tokens.

Image Added

Click on the "Create New Token" button to generate a new Access Token. Provide a descriptive name for the token, and you can also assign permissions to control API access as below. Then click "Create" to generate the Access Token.

Image Added

Once the Access Token is generated, copy it immediately and store it securely in a safe location. This Access Token is essential for authenticating requests of your MetaFox site to the Mux API.

Setting Up Mux Webhook

In your Mux dashboard, go to the "Settings" section.

Access Webhooks: Within the "Settings" section, select "Webhooks." This is where you'll set up and manage your Webhooks.

Create a New Webhook: Click on the "Create New Webhook" button to set up a new webhook. You'll need to provide specific details about the webhook.

Configure Webhook Details: Enter the URL where you want to receive the webhook notifications in the "Delivery URL" field. You can also choose the events you want to be notified about, such as video uploads, errors, or completed encoding jobs. Optionally, you can set a secret to ensure data integrity and security.

Save and Verify: After configuring the webhook details, click "Save Webhook." Mux will then send a verification request to the URL you provided. Ensure that your server can receive this verification request and respond with a 200 status code to confirm the webhook.

Test the Webhook: To ensure the webhook is functioning correctly, perform a test by triggering one of the selected events. Verify that your server receives the webhook notification and handles it appropriately.

Configure Mux service on MetaFox

Go to AdminCP Dashboard > App Settings > Video > Services. Then choose Mux Video item as below

Fill in the settings with the proper values you have when setting up your Mux account. Then save changes.

...