Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Running...
test markup, will be hidden
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;