Page tree

Versions Compared

Key

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

...

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:

Image Added

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 to notify" 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: Please fill the URL https://yourdomain.com/api/v1/video/callback/mux . You need to replace the yourdomain.com part the URL with the proper domain of your MetaFox site

Image Added

After configuring the webhook details, click "Save Create 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..

Then you can click on the Show Signing Secret of the created webhook item to get the detailed signing secret. Copy and store it for later usage

You have set up your Mux account successfully. Now we can move to the next step to configure the Mux service on your MetaFox site.

Configure Mux service on MetaFox

...