Download a recording of a Live Event

Download a recording after a Live Event ends

Immediately after the Live Event ends, JW Player imports and transcodes the Live Event recording (master asset). The time to import and transcode the master asset is proportional to the duration of the live event. Once the preparation of the master asset has completed, the master can be downloaded directly from your account.

You can use the following steps to download the master asset with the Platform Management API v2.

📘

TIP

As an alternative to using the Platform Management API v2, you can download a past event from your JW Player dashboard.



Implementation

  1. Check the status of the master asset.
GET https://api.jwplayer.com/v2/sites/{site_id}/channels/{channel_id}/events/{event_id}.

The API call returns a response that includes the master_access.status: available.

{
    ...
    "master_access": {
        "expiration": "2021-01-29T17:50:48+00:00",
        "status": "available"
    },
    "master_expiration": "2021-01-29T17:50:48+00:00",
    ...
    "type": "event"
}

  1. If the previous call returns master_access.status: unavailable, request that the master asset be made available. Otherwise, skip to step 3.
PUT https://api.jwplayer.com/v2/sites/{site_id}/channels/{channel_id}/events/{event_id}/request_master

📘

This PUT call only has to be made once every 24 hours. After sending this request, periodically check the status of the master until it becomes available.

You can configure a "Media Available" webhook or a "Media Available" Zap to notify you when the recording is ready to be streamed or downloaded.


  1. Once the master asset is available, download the master asset.
GET https://api.jwplayer.com/sites/{site_id}/channels/{channel_id}/events/{event_id}/master/

The API call returns the URL for the master file.

{
    "master_url": "https://content.jwplatform.com/originals/oAL1T2B1y.mp4?sig=d6b33c04c3fc9d95b4645534f3386315&exp=1611860064"
}

You can now share the video with your viewers.



Did this page help you?