Stand Alone Player ( MediaProxy Override )
Kaltura support several stand alone player modes. Learn more about
stand alone player modes Kaltura API documentation.
This example highlights the MediaProxy Override, and JSON Config. It includes a midroll at 5 seconds,
and sample entry metadata mapping for thumbnail preview slices..
Entity override at embed time:
var mediaProxyEntry = {
'preferedFlavorBR': 1600,
'entry':{
'id': "key_1",
'name': "My ToolKit Video",
"description": "Kaltura Player Toolkit Description.",
"plays":1234,
"views":47332,
"duration":114,
"createdAt":1379965720,
"thumbnailUrl": 'http://cdnbakmi.kaltura.com/p/243342/sp/24334200/thumbnail/entry_id/1_sf5ovm7u/version/100003/width/640'
},
'entryCuePoints': [{
"protocolType": 1,
"adType": 1,
"cuePointType": "adCuePoint.Ad",
"startTime": 4936,
"sourceUrl": "http://projects.kaltura.com/mdale/hotelVastAd.xml"
}],
"contextData":{
'isCountryRestricted': false
},
'entryMetadata': {
'thumbSlicesUrl': 'http://cdnbakmi.kaltura.com/p/243342/sp/24334200/thumbnail/entry_id/1_sf5ovm7u/version/100003/width/100/vid_slices/100',
'AgeGroup': "16"
},
'sources':[
{
"src":"http://cdnbakmi.kaltura.com/p/243342/sp/24334200/playManifest/entryId/1_sf5ovm7u/flavorId/1_4j0omqcl/format/url/protocol/http/a.webm",
"width":"624",
"height":"352",
"bandwidth":"740352",
"type":"video/webm; codecs=\"vp8, vorbis",
},{
"src":"http://cdnbakmi.kaltura.com/p/243342/sp/24334200/playManifest/entryId/1_sf5ovm7u/flavorId/1_d2uwy7vv/format/url/protocol/http/a.mp4",
"width":"640",
"height":"360",
"bandwidth":"1101824",
"type":"video/mp4; codecs=\"avc1.42E01E, mp4a.40.2",
},{
"src":"http://cdnbakmi.kaltura.com/p/243342/sp/24334200/playManifest/entryId/1_sf5ovm7u/flavorId/1_jl7y56al/format/url/protocol/http/a.mp4",
"width":"1280",
"height":"720",
"bandwidth":"24117248",
"type":"video/mp4; codecs=\"avc1.42E01E, mp4a.40.2",
},
{
"src":"http://cdnbakmi.kaltura.com/p/243342/sp/24334200/playManifest/entryId/1_sf5ovm7u/flavorIds/1_jl7y56al/format/applehttp/protocol/http/a.m3u8",
"type":"application/vnd.apple.mpegurl",
}
]
}
// do the embed:
kWidget.embed('kaltura_player', {
'wid' : '_partnerkey',
'flashvars':{
// json player config
'jsonConfig':jsonConfig,
// runtime overrides:
'mediaProxy.preferedFlavorBR': 1600,
// per entity settings:
'mediaProxy': mediaProxyEntry
}
})
changeMedia call ( without reloading player):
kdp.sendNotification('changeMedia', { 'mediaProxy': mediaProxyEntry });
Sample changeMedia on an empty player