# Dash Segment
API call format
GET /broker/vod/list/<source_guid>/dash/{<dash_manifest_media_type>}/segments
Description
Get Dash segments by GUID and Dash playlist This call gets all available video segments for a specific DASH format by specifying it's manifest.
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.
- <dash_manifest_media_type> - Take mediaTypeKey from segmentsInfo section using Dash Variants API call.
Postcondition
- On success response code should be 200
- On success the whole JSON body of all video segments for the specified DASH encoded format 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>/dash/dash_segment_720_2500000_/segments`
[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": [
{
"destBucket": "<vod-destinationbucket>",
"fileName": "<dashName>_720p_000000001.mp4",
"mediaType": "dash_segment_720_2500000_000001",
"initBucketPath": "<vod-destinationbucket>/sources/<source_guid>/dash/<dashName>_720p_000000001.mp4",
"endList": true,
"cdnUrl": "https://<server>/sources/<source_guid>/dash/<dashName>_720p_000000001.mp4",
"filePath": "<source_guid>/dash/<dashName>_720p_000000001.mp4",
"mediaSequence": 1,
"initCdnUrl": "https://<server>/sources/<source_guid>/dash/<dashName>_720pinit.mp4",
"guid": "<source_guid>",
"mapKey": "<vod-destinationbucket>/sources/<source_guid>/dash/<dashName>_720pinit.mp4",
"number": 1,
"initFilePath": "<source_guid>/dash/<dashName>_720pinit.mp4",
"programId": 1,
"bitRate": 2500000,
"width": 1280,
"height": 720,
"targetDuration": 30.03,
"duration": 30.03,
"initFileName": "<dashName>_720pinit.mp4",
"codecs": "avc1.640028",
"timeline": 0
},
{
"destBucket": "<vod-destinationbucket>",
"fileName": "<dashName>_720p_000000002.mp4",
"mediaType": "dash_segment_720_2500000_000002",
"initBucketPath": "<vod-destinationbucket>/sources/<source_guid>/dash/<dashName>_720p_000000002.mp4",
"endList": true,
"cdnUrl": "https://<server>/sources/<source_guid>/dash/<dashName>_720p_000000002.mp4",
"filePath": "<source_guid>/dash/<dashName>_720p_000000002.mp4",
"mediaSequence": 1,
"initCdnUrl": "https://<server>/sources/<source_guid>/dash/<dashName>_720pinit.mp4",
"guid": "<source_guid>",
"mapKey": "<vod-destinationbucket>/sources/<source_guid>/dash/<dashName>_720pinit.mp4",
"number": 2,
"initFilePath": "<source_guid>/dash/<dashName>_720pinit.mp4",
"programId": 1,
"bitRate": 2500000,
"width": 1280,
"height": 720,
"targetDuration": 30.03,
"duration": 30.03,
"initFileName": "<dashName>_720pinit.mp4",
"codecs": "avc1.640028",
"timeline": 0
},
......
{
"destBucket": "<vod-destinationbucket>",
"fileName": "<dashName>_720p_000000043.mp4",
"mediaType": "dash_segment_720_2500000_000043",
"initBucketPath": "<vod-destinationbucket>/sources/<source_guid>/dash/<dashName>_720p_000000043.mp4",
"endList": true,
"cdnUrl": "https://<server>/sources/<source_guid>/dash/<dashName>_720p_000000043.mp4",
"filePath": "<source_guid>/dash/<dashName>_720p_000000043.mp4",
"mediaSequence": 1,
"initCdnUrl": "https://<server>/sources/<source_guid>/dash/<dashName>_720pinit.mp4",
"guid": "<source_guid>",
"mapKey": "<vod-destinationbucket>/sources/<source_guid>/dash/<dashName>_720pinit.mp4",
"number": 43,
"initFilePath": "<source_guid>/dash/<dashName>_720pinit.mp4",
"programId": 1,
"bitRate": 2500000,
"width": 1280,
"height": 720,
"targetDuration": 30.03,
"duration": 20.019999999999982,
"initFileName": "<dashName>_720pinit.mp4",
"codecs": "avc1.640028",
"timeline": 0
}
]
}