Copyright © 2011 Kaltura Inc.
All Rights Reserved. Designated trademarks and brands are the property of their respective owners.
Use of this web site constitutes acceptance of the Terms of Use and Privacy Policy.
EduVideo.org
Hello I am just trying to use the KSU integration guide sample code to get started with Kalura. Unfortunately, I'm running into an immediate road block. After modifying the code to use my account I am receiving the following error message.
Fatal error: Uncaught exception 'KalturaException' with message 'Error while starting session for partner [254892]' in /var/www/vhosts/classchatterlive.com/httpdocs/kaltura_client_v3/KalturaClientBase.php:307 Stack trace: #0 /var/www/vhosts/classchatterlive.com/httpdocs/kaltura_client_v3/KalturaClient.php(3683): KalturaClientBase->throwExceptionIfError(Array) #1 /var/www/vhosts/classchatterlive.com/httpdocs/ksu.php(20): KalturaSessionService->start('6ac67698b13996d...', 'ANONYMOUS', 0) #2 {main} thrown in /var/www/vhosts/classchatterlive.com/httpdocs/kaltura_client_v3/KalturaClientBase.php on line 307
My the relevant code seems to be;
<!--include external scripts and define constants -->
<?php
ini_set('display_errors',1);
error_reporting(E_ALL|E_STRICT);
require_once("kaltura_client_v3/KalturaClient.php");
//define constants
define("KALTURA_PARTNER_ID",254892);
define("KALTURA_PARTNER_WEB_SERVICE_SECRET", "6ac67698b*************");
//define session variables
$partnerUserID = "ANONYMOUS";
//Construction of Kaltura objects for session initiation
$config = new KalturaConfiguration(KALTURA_PARTNER_ID);
$client = new KalturaClient($config);
$ks = $client->session->start(KALTURA_PARTNER_WEB_SERVICE_SECRET, $partnerUserID, KalturaSessionType::USER);
$flashVars = array();
$flashVars["uid"] = $partnerUserID;
$flashVars["partnerId"] = KALTURA_PARTNER_ID;
$flashVars["subPId"] = KALTURA_PARTNER_ID*100;
$flashVars["entryId"] = -1;
$flashVars["ks"] = $ks;
$flashVars["conversionProfile"] = 5;
$flashVars["maxFileSize"] = 200;
$flashVars["maxTotalSize"] = 5000;
$flashVars["uiConfId"] = 11500;
$flashVars["jsDelegate"] = "delegate";
?>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"></script>
<!---set style to enable widget overlap -->
I have tested my partner id and ARTNER_WEB_SERVICE_SECRET number and they work. So what am I missing?
Dan
I have solved this issue;
Change the line to read
$ks = $client->session->start(KALTURA_PARTNER_WEB_SERVICE_SECRET, $partnerUserID, KalturaSessionType::ADMIN);Good luck everyone