Load new content to the playlist at runtime

Implementation example

  1. var player = ($( '#kaltura_player' ).get(0));
  2. var currentEntry = player.evaluate("{mediaProxy.entry.id}") ;
  3.  
  4.  
  5. var params = {
  6. 'playlistParams' : {
  7. 'service':'playlist' ,
  8. 'action':'execute' ,
  9. 'id' : '_KDP_CTXPL' ,
  10. 'filter:objectType' : 'KalturaMediaEntryFilterForPlaylist' ,
  11. 'filter:idNotIn' : currentEntry , // dont fetch current entry
  12. 'playlistContext:objectType':'KalturaEntryContext',
  13. 'playlistContext:entryId': currentEntry,
  14. 'totalResults' : 50
  15. },
  16. 'autoInsert' : true, //load and play new playlist
  17. //'initItemEntryId' : '', // player start playing a specific entry if exist
  18. 'playlistName' : 'new playlist' // override the displayed playlist name
  19. }
  20. player.sendNotification('loadExternalPlaylist', params );
The Kaltura playlist plugin, supports associating multiple clips in sequence.

html5 qunit | flash qunit