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..


Alert Entry data for: {mediaProxy.entry} | {mediaProxy.sources} | {mediaProxy.entryCuePoints} | {mediaProxy.entryMetadata}
API Calls: changeMedia Sintel, changeMedia ToolKit,

Entity override at embed time:

  1. var mediaProxyEntry = {
  2. 'preferedFlavorBR': 1600,
  3. 'entry':{
  4. 'id': "key_1",
  5. 'name': "My ToolKit Video",
  6. "description": "Kaltura Player Toolkit Description.",
  7. "plays":1234,
  8. "views":47332,
  9. "duration":114,
  10. "createdAt":1379965720,
  11. "thumbnailUrl": 'http://cdnbakmi.kaltura.com/p/243342/sp/24334200/thumbnail/entry_id/1_sf5ovm7u/version/100003/width/640'
  12. },
  13. 'entryCuePoints': [{
  14. "protocolType": 1,
  15. "adType": 1,
  16. "cuePointType": "adCuePoint.Ad",
  17. "startTime": 4936,
  18. "sourceUrl": "http://projects.kaltura.com/mdale/hotelVastAd.xml"
  19. }],
  20. "contextData":{
  21. 'isCountryRestricted': false
  22. },
  23. 'entryMetadata': {
  24. 'thumbSlicesUrl': 'http://cdnbakmi.kaltura.com/p/243342/sp/24334200/thumbnail/entry_id/1_sf5ovm7u/version/100003/width/100/vid_slices/100',
  25. 'AgeGroup': "16"
  26. },
  27. 'sources':[
  28. {
  29. "src":"http://cdnbakmi.kaltura.com/p/243342/sp/24334200/playManifest/entryId/1_sf5ovm7u/flavorId/1_4j0omqcl/format/url/protocol/http/a.webm",
  30. "width":"624",
  31. "height":"352",
  32. "bandwidth":"740352",
  33. "type":"video/webm; codecs=\"vp8, vorbis",
  34. },{
  35. "src":"http://cdnbakmi.kaltura.com/p/243342/sp/24334200/playManifest/entryId/1_sf5ovm7u/flavorId/1_d2uwy7vv/format/url/protocol/http/a.mp4",
  36. "width":"640",
  37. "height":"360",
  38. "bandwidth":"1101824",
  39. "type":"video/mp4; codecs=\"avc1.42E01E, mp4a.40.2",
  40. },{
  41. "src":"http://cdnbakmi.kaltura.com/p/243342/sp/24334200/playManifest/entryId/1_sf5ovm7u/flavorId/1_jl7y56al/format/url/protocol/http/a.mp4",
  42. "width":"1280",
  43. "height":"720",
  44. "bandwidth":"24117248",
  45. "type":"video/mp4; codecs=\"avc1.42E01E, mp4a.40.2",
  46. },
  47. {
  48. "src":"http://cdnbakmi.kaltura.com/p/243342/sp/24334200/playManifest/entryId/1_sf5ovm7u/flavorIds/1_jl7y56al/format/applehttp/protocol/http/a.m3u8",
  49. "type":"application/vnd.apple.mpegurl",
  50. }
  51. ]
  52. }
  53. // do the embed:
  54. kWidget.embed('kaltura_player', {
  55. 'wid' : '_partnerkey',
  56. 'flashvars':{
  57. // json player config
  58. 'jsonConfig':jsonConfig,
  59. // runtime overrides:
  60. 'mediaProxy.preferedFlavorBR': 1600,
  61. // per entity settings:
  62. 'mediaProxy': mediaProxyEntry
  63. }
  64. })

changeMedia call ( without reloading player):

  1. kdp.sendNotification('changeMedia', { 'mediaProxy': mediaProxyEntry });

Sample changeMedia on an empty player

html5 qunit | flash qunit