Access Control Preview embed level ks

View source code of sample KS service

error getting ks

Example getting KS via service and used in embed code:

  1. // for example ks service API call see:
  2. // https://github.com/kaltura/mwEmbed/blob/master/modules/KalturaSupport/apiServices/mweApiKSTest.php
  3. $.getJSON( 'YOUR_ENTITLEMENT_CHECK_SERVICE__&entry_id=1_20x0ca3l&wid=_243342', function( ksJSON ){
  4. if( ! ksJSON || ! ksJSON.ks ){
  5. $('#playerTarget').text( 'You may not have permission to view this content');
  6. return ;
  7. }
  8. kWidget.embed( 'playerTarget', {
  9. 'wid' : '_243342',
  10. 'uiconf_id' : '8145862',
  11. 'entry_id' : '0_mjbelixh',
  12. 'flashvars':{
  13. 'ks' : ksJSON.ks
  14. }
  15. });
  16. });

Example of same player without KS provided

loading ...
html5 qunit | flash qunit