You are here

function KalturaHelpers::getKalturaPlayerFlashVars in Kaltura 5

Same name and namespace in other branches
  1. 6.2 kaltura_client/kaltura_helpers.php \KalturaHelpers::getKalturaPlayerFlashVars()
  2. 6 kaltura_client/kaltura_helpers.php \KalturaHelpers::getKalturaPlayerFlashVars()
  3. 7.3 kaltura_client/kaltura_helpers.php \KalturaHelpers::getKalturaPlayerFlashVars()
  4. 7.2 kaltura_client/kaltura_helpers.php \KalturaHelpers::getKalturaPlayerFlashVars()

File

kaltura_client/kaltura_helpers.php, line 68

Class

KalturaHelpers

Code

function getKalturaPlayerFlashVars($ks, $kshowId = -1, $entryId = -1) {
  $sessionUser = KalturaHelpers::getSessionUser();
  $config = KalturaHelpers::getServiceConfiguration();
  $flashVars = array();
  $flashVars["kshowId"] = $kshowId;
  $flashVars["entryId"] = $entryId;
  $flashVars["partner_id"] = $config->partnerId;
  $flashVars["subp_id"] = $config->subPartnerId;
  $flashVars["uid"] = $sessionUser->userId;
  $flashVars["ks"] = $ks;
  return $flashVars;
}