In this article we provide examples of calls and responses for getPlaybackContext.
Response with HLS format
Example of a response to baseEntry.getPlaybackContext - Kaltura VPaaS API Documentation with format “applehttp” which represents HLS:
{ "sources": [
{
"deliveryProfileId": 16951,
"format": "applehttp",
"protocols": "http,https",
"flavorIds": "1_59psvzwe,1_ppsc6g4j,1_9fwkuvsn",
"url": "https://cdnapisec.kaltura.com/p/4763302/sp/4763302/playManifest/entryId/1_3ssctdrj/flavorIds/1_59psvzwe,1_ppsc6g4j,1_9fwkuvsn/deliveryProfileId/16951/protocol/https/format/applehttp/a.m3u8",
"drm": [],
"objectType": "KalturaPlaybackSource"
} ], "playbackCaptions": [], "flavorAssets": [
{
"flavorParamsId": 36,
"width": 480,
"height": 360,
"bitrate": 400,
"frameRate": 0,
"isOriginal": false,
"isWeb": true,
"containerFormat": "flv",
"videoCodecId": "",
"status": 2,
"isDefault": false,
"id": "1_59psvzwe",
"entryId": "1_3ssctdrj",
"partnerId": 4763302,
"size": 0,
"tags": "mbr,ingest,web,mobile,ipad,ipadnew",
"createdAt": 1699435261,
"updatedAt": 1700647639,
"description": "",
"sizeInBytes": 0,
"objectType": "KalturaLiveAsset"
},
{
"flavorParamsId": 37,
"width": 640,
"height": 480,
"bitrate": 600,
"frameRate": 0,
"isOriginal": false,
"isWeb": true,
"containerFormat": "flv",
"videoCodecId": "",
"status": 2,
"isDefault": false,
"id": "1_ppsc6g4j",
"entryId": "1_3ssctdrj",
"partnerId": 4763302,
"size": 0,
"tags": "mbr,ingest,web,mobile,ipad,ipadnew",
"createdAt": 1699435261,
"updatedAt": 1700647639,
"description": "",
"sizeInBytes": 0,
"objectType": "KalturaLiveAsset"
},
{
"flavorParamsId": 32,
"width": 640,
"height": 480,
"bitrate": 900,
"frameRate": 0,
"isOriginal": false,
"isWeb": true,
"containerFormat": "flv",
"videoCodecId": "",
"status": 2,
"isDefault": false,
"id": "1_9fwkuvsn",
"entryId": "1_3ssctdrj",
"partnerId": 4763302,
"size": 0,
"tags": "source,ingest,web,mobile,ipad,ipadnew,recording_anchor",
"createdAt": 1699435261,
"updatedAt": 1700647639,
"description": "",
"sizeInBytes": 0,
"objectType": "KalturaLiveAsset"
} ], "actions": [], "messages": [], "bumperData": [], "objectType": "KalturaPlaybackContext"
}
Response with HLS format and multiple delivery profiles
Example of a response to baseEntry.getPlaybackContext - Kaltura VPaaS API Documentation with format “applehttp” which represents HLS, with multiple delivery profiles in the response:
{ "sources": [
{
"deliveryProfileId": 13942,
"format": "applehttp",
"protocols": "http,https",
"flavorIds": "1_xypvyaaj,1_t7qh8mrj,1_zp9eflp8,1_loo1cmyk",
"url": "https://cdnapisec.kaltura.com/p/5224822/sp/5224822/playManifest/entryId/1_r20f0ocd/flavorIds/1_xypvyaaj,1_t7qh8mrj,1_zp9eflp8,1_loo1cmyk/deliveryProfileId/13942/protocol/https/format/applehttp/a.m3u8",
"drm": [],
"objectType": "KalturaPlaybackSource"
},
{
"deliveryProfileId": 13952,
"format": "applehttp",
"protocols": "http,https",
"flavorIds": "1_xypvyaaj,1_t7qh8mrj,1_zp9eflp8,1_loo1cmyk",
"url": "https://cdnapisec.kaltura.com/p/5224822/sp/5224822/playManifest/entryId/1_r20f0ocd/flavorIds/1_xypvyaaj,1_t7qh8mrj,1_zp9eflp8,1_loo1cmyk/deliveryProfileId/13952/protocol/https/format/applehttp/a.m3u8",
"drm": [],
"objectType": "KalturaPlaybackSource"
},
{
"deliveryProfileId": 21633,
"format": "applehttp",
"protocols": "http,https",
"flavorIds": "1_xypvyaaj,1_t7qh8mrj,1_zp9eflp8,1_loo1cmyk",
"url": "https://cdnapisec.kaltura.com/p/5224822/sp/5224822/playManifest/entryId/1_r20f0ocd/flavorIds/1_xypvyaaj,1_t7qh8mrj,1_zp9eflp8,1_loo1cmyk/deliveryProfileId/21633/protocol/https/format/applehttp/a.m3u8",
"drm": [],
"objectType": "KalturaPlaybackSource"
} ], "playbackCaptions": [], "flavorAssets": [
{
"flavorParamsId": 487041,
"width": 640,
"height": 360,
"bitrate": 557,
"frameRate": 25,
"isOriginal": false,
"isWeb": true,
"containerFormat": "isom",
"videoCodecId": "avc1",
"status": 2,
"language": "Undefined",
"isDefault": false,
"id": "1_xypvyaaj",
"entryId": "1_r20f0ocd",
"partnerId": 5224822,
"version": "1",
"size": 365,
"tags": "mobile,web,mbr,iphone,iphonenew,ipad,ipadnew,dash",
"fileExt": "mp4",
"createdAt": 1700814868,
"updatedAt": 1700814925,
"description": "",
"sizeInBytes": "373883",
"objectType": "KalturaFlavorAsset"
},
{
"flavorParamsId": 487051,
"width": 854,
"height": 480,
"bitrate": 750,
"frameRate": 25,
"isOriginal": false,
"isWeb": true,
"containerFormat": "isom",
"videoCodecId": "avc1",
"status": 2,
"language": "Undefined",
"isDefault": false,
"id": "1_t7qh8mrj",
"entryId": "1_r20f0ocd",
"partnerId": 5224822,
"version": "1",
"size": 489,
"tags": "mobile,web,mbr,iphone,iphonenew,ipad,ipadnew,dash",
"fileExt": "mp4",
"createdAt": 1700814868,
"updatedAt": 1700814920,
"description": "audio warnings: 2106,#Redundant bitrate.\n",
"sizeInBytes": "501355",
"objectType": "KalturaFlavorAsset"
},
{
"flavorParamsId": 487061,
"width": 960,
"height": 540,
"bitrate": 988,
"frameRate": 25,
"isOriginal": false,
"isWeb": true,
"containerFormat": "isom",
"videoCodecId": "avc1",
"status": 2,
"language": "Undefined",
"isDefault": false,
"id": "1_zp9eflp8",
"entryId": "1_r20f0ocd",
"partnerId": 5224822,
"version": "1",
"size": 643,
"tags": "mobile,web,mbr,ipad,ipadnew,iphone,iphonenew,dash",
"fileExt": "mp4",
"createdAt": 1700814868,
"updatedAt": 1700814925,
"description": "audio warnings: 2106,#Redundant bitrate.\n",
"sizeInBytes": "659243",
"objectType": "KalturaFlavorAsset"
},
{
"flavorParamsId": 487071,
"width": 1280,
"height": 720,
"bitrate": 1549,
"frameRate": 25,
"isOriginal": false,
"isWeb": true,
"containerFormat": "isom",
"videoCodecId": "avc1",
"status": 2,
"language": "Undefined",
"isDefault": false,
"id": "1_loo1cmyk",
"entryId": "1_r20f0ocd",
"partnerId": 5224822,
"version": "1",
"size": 1006,
"tags": "mobile,web,mbr,ipad,ipadnew,iphone,iphonenew,dash",
"fileExt": "mp4",
"createdAt": 1700814868,
"updatedAt": 1700814926,
"description": "",
"sizeInBytes": "1030166",
"objectType": "KalturaFlavorAsset"
} ], "actions": [], "messages": [], "bumperData": [], "objectType": "KalturaPlaybackContext"
}