Related Plugin


Add the Related Videos screen at the end of the video to attract users to watch additional videos.

Tracking related video clicks:

  1. 'readyCallback': function( playerId ){
  2. var kdp = $('#' + playerId)[0];
  3. kdp.kBind( 'relatedVideoSelect', function( relatedData ){
  4. $('#relatedVideoSelectLog').append( "Selected: " + relatedData.entryId + "
  5. " );
  6. });
  7. }
Related event Log:


Custom related video fulfillment:


Update Custom Related data template

Custom relatedData code example:
  1. 'readyCallback': function( playerId ){
  2. var kdp = $('#' + playerId)[0];
  3. kdp.kBind( 'relatedData', function( callback){
  4. callback( customRelatedEntries );
  5. });
  6. }
html5 qunit | flash qunit