# MP4 File

API call format:

GET /broker/vod/list/{<source_guid>}/mp4/{<mp4_manifest_media_type>}

Description

Get MP4 variants by GUID and mediaType. This call gets a single video output information by specifying source GUID and <mp4_manifest_media_type>.

Precondition:

  • No authorization token is needed.
  • Mandatory elements (should be specified):

Postcondition

  • On success response code should be 200
  • On success a JSON body of filtered MP4 output information is returned..
  • On failure an error will be returned with the right error code and description.

Example:

[Request] GET https://<base_api_url>/broker/vod/list/<source_guid>/mp4/mp4_output_360 
[Request Headers] {"Content-Type":"application/json","Accept":"application/json","Authorization":"<IdToken>"}
[Response] 200
[Response Headers] {"Content-Type":["application/json"],"Content-Length":["..."],"Connection":["keep-alive"],"Date":["..... GMT"],"x-amzn-RequestId":["....."],....]}
[Response]
{
  "status": true,
  "data": 
    {
      "size": 208614602,
      "fileName": "<hls_name>_360p.mp4",
      "mediaType": "mp4_output_360",
      "guid": "<source_guid>",
      "bitRate": 1302538,
      "width": 640,
      "height": 360,
      "cdnUrl": "https://<server>/sources/<source_guid>/mp4/<hls_name>_360p.mp4",
      "filePath": "<source_guid>/mp4/<hls_name>_360p.mp4",
      "bucket": "<vod-destinationbucket>",
      "key": "<vod-destinationbucket>/sources/<source_guid>/mp4/<hls_name>_360p.mp4",
      "duration": 1281.28
    }
}