Here is the config file contents:
define('KALTURA_PARTNER_ID' ,xxxxxx);
define('KALTURA_USER_SECRET' ,"xxxxxxx");
define('KALTURA_ADMIN_SECRET' , "xxxxx");
define('KALTURA_SERVICE_URL' ,"https://kaltura.com");
define('KALTURA_COMPRESSION_PROFILE_ID' ,'xxxx');
define('KALTURA_UICONFID' ,xxxxx);
define('KALTURA_UICONFID_UPLOAD',xxxxx);
define('KALTURA_USER','xxxxxx');
Here is where I add the session:
//define session variables
$partnerUserID = KALTURA_USER;
$partnerID = KALTURA_PARTNER_ID;
$serviceUrl = KALTURA_SERVICE_URL;
$adminSecret = KALTURA_ADMIN_SECRET;
$sessionExpiry = 86400;
$sessionPrivileges = '';
$config = new KalturaConfiguration($partnerID);
$config->serviceUrl = $serviceUrl;
$config->format = KalturaClientBase::KALTURA_SERVICE_FORMAT_PHP;
$client = new KalturaClient($config);
$ks = $client->session->start(
$adminSecret,
$partnerUserID,
KalturaSessionType::USER,
$partnerID);
$client->setKS($ks);
Thanks so much for helping me figure this out! Also it would be nice to know if the ServiceUrl is something that we should be keeping out of git for security reasons or if we can’t figure this out if it is ok keeping it hardcoded directly for now.