# MP4 Variants

API call format

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

Description

Get MP4 outputs by GUID. This call gets all available video outputs information by specifying source GUID.

Precondition:

  • No authorization token is needed.
  • Mandatory elements (should be specified):
    • <source_guid> - valid source guid. Take a specific source guid using Vod list API call.

Postcondition

  • On success response code should be 200
  • On success a JSON body of all available output video file's information are 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
[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", //<mp4_manifest_media_type>
      "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
    },
    {
      "size": 416783534,
      "fileName": "<hls_name>_720p.mp4",
      "mediaType": "mp4_output_720", //<mp4_manifest_media_type>
      "guid": "<source_guid>",
      "bitRate": 2602294,
      "width": 1280,
      "height": 720,
      "cdnUrl": "https://<server>/sources/<source_guid>/mp4/<hls_name>_720p.mp4",
      "filePath": "<source_guid>/mp4/<hls_name>_720p.mp4",
      "bucket": "<vod-destinationbucket>",
      "key": "<vod-destinationbucket>/sources/<source_guid>/mp4/<hls_name>_720p.mp4",
      "duration": 1281.28
    }
  ]
}