If you don't find an answer, please click here to post your question.

Getting Stream URLs from a VOD

0 Kudos
Started ‎06-05-2015 by
Modified ‎06-05-2015 by

Getting Stream URLs from a VOD

by Community Manager on ‎06-05-2015 09:27 AM (1,500 Views)

Assets are transcoded into different resolutions, codecs, and bitrates. Each of these is called a "stream" and can be retrieved through an asset's streams collection.

Get the streams for an asset via API with a GET call like this:

/v2/assets/:asset_id/streams

Sample response:

[
{
// One of ["single", "abr"].
// An "abr" stream can be used for adaptive bitrate playback.
"stream_type": "single",
// One of ["baseline", "main", "high"].
"profile": "baseline",
"video_height": 360,
"video_width": 640,
// This will be true for the original uploaded source file.
"is_source": false,
// In bytes.
"file_size": 17937644,
"audio_codec": "aac",
"video_codec": "h264",
"average_video_bitrate": 300,
"muxing_format": "MP4",
"url": "http://ak.c.ooyala.com/VpMzr2pwnp9PB_LVFaRUnnofJJAat2Js/DOcJ-Fxa1rRg4gtGU3OjM8OjBhO4EUTl"
},
{
"stream_type": "abr",
"profile": "baseline",
"video_height": 360,
"video_width": 640,
"is_source": false,
"file_size": 41716636,
"audio_codec": "aac",
"video_codec": "h264",
"average_video_bitrate": 900,
"muxing_format": "TS",
"url": "http://www.ooyala.com/player/ipad/80MGxj0sGW1vxNkF7LbMwJP3iPmhaotj.m3u8"
}
]