Access Control Widevine ks

This shows arbitrary custom access logic being applied to widevine content.

Without KS:

With KS:
loading ...

Generating the KS request server side:

<?php
// Include the kaltura client available at: http://www.kaltura.com/api_v3/testme/client-libs.php
require_once(  '/kaltura_client_v3/KalturaClient.php' );

// setup your local config:
$partnerId = '929011';
$kalturaUserSecret = 'Your user secret is available in the settings tab in the KMC';
$entryId = '1_4f9zv9fu';

$conf = new KalturaConfiguration( $partnerId );
$conf->serviceUrl =	'https://cdnapisec.kaltura.com';
$conf->serviceBase =  '/api_v3/index.php?service=';

$client = new KalturaClient( $conf );

$ks = $client->session->start ( $kalturaUserSecret, 
	$_SERVER['REMOTE_ADDR'], 
	KalturaSessionType::USER, 
	$partnerId, 
	3600, // expire in one hour
	"sview:{$entryId}" // give permission to "view" the entry for the allocated time
);
// echo the KS out or return it to your embed logic,
echo $ks;

Now take the KS and include in your embed:

kWidget.embed('playerTargetId', {
	'wid': '_929011',
	'uiconf_id' : '16115322',
	'entry_id' : '1_4f9zv9fu',
	'flashvars':{
		'flavorTags' : 'widevine_mbr,mbr,web',
		'widevine': {
			'plugin': true
		},
		'ks': /* your generated sview ks goes here */
	}
});