protected function init($args) { parent::init($args); if (isset($args['CHANNEL']) && strlen($args['CHANNEL'])) { $this->channel = $args['CHANNEL']; } }
protected function init($args) { parent::init($args); if (!isset($args['PartnerID'])) { throw new Exception('Kaltura PartnerID not included'); } $this->token = $args['token']; if (!isset($args['PartnerSecret'])) { throw new Exception('Kaltura PartnerSecret not included'); } define("KALTURA_PARTNER_ID", PartnerID); define("KALTURA_PARTNER_ADMIN_SECRET", PartnerSecret); //define session variables $this->partnerUserID = 'ANONYMOUS'; //construct Kaltura objects for session initiation $config = new KalturaConfiguration(KALTURA_PARTNER_ID); $client = new KalturaClient($config); $ks = $client->session->start(KALTURA_PARTNER_ADMIN_SECRET, $this->partnerUserID, KalturaSessionType::ADMIN); $client->setKs($ks); $this->setBaseURL("http://www.kaltura.com/api_v3"); }
protected function init($args) { parent::init($args); if (isset($args['PLAYLIST']) && strlen($args['PLAYLIST'])) { $this->playlist = $args['PLAYLIST']; } $this->setStandardFilters(); }
protected function init($args) { parent::init($args); if (!isset($args['token'])) { throw new KurogoConfigurationException('Brightcove token not included'); } $this->token = $args['token']; if (!isset($args['playerKey'])) { throw new KurogoConfigurationException('Brightcove playerKey not included'); } $this->playerKey = $args['playerKey']; if (!isset($args['playerId'])) { throw new KurogoConfigurationException('Brightcove playerId not included'); } $this->playerId = $args['playerId']; $this->setBaseURL("http://api.brightcove.com/services/library"); }
protected function init($args) { parent::init($args); $this->setStandardFilters(); }