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. I am sorry if this is a double post, I just wanna get it to the right place.
My the relevant code seems to be;
//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 PARTNER_WEB_SERVICE_SECRET number and they work. So what am I missing?
Dan
you may have been using the admin secret for your kaltura account rather than the user secret, you probably should be using the user secret to keep users from being able to start up an admin session and changing videos in your kaltura account.
I have solved this issue;
Change the line to read
$ks = $client->session->start(KALTURA_PARTNER_WEB_SERVICE_SECRET, $partnerUserID, KalturaSessionType::USER);To
$ks = $client->session->start(KALTURA_PARTNER_WEB_SERVICE_SECRET, $partnerUserID, KalturaSessionType::ADIMIN);Good luck everyone