• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP Kaltura_Client_Client类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中Kaltura_Client_Client的典型用法代码示例。如果您正苦于以下问题:PHP Kaltura_Client_Client类的具体用法?PHP Kaltura_Client_Client怎么用?PHP Kaltura_Client_Client使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了Kaltura_Client_Client类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: getClient

 /**
  *
  * @return Kaltura_Client_Client
  */
 public static function getClient()
 {
     if (self::$client) {
         return self::$client;
     }
     if (!class_exists('Kaltura_Client_Client')) {
         throw new Infra_Exception('Kaltura client not found, maybe it wasn\'t generated', Infra_Exception::ERROR_CODE_MISSING_CLIENT_LIB);
     }
     $ks = self::getKs();
     $config = new Kaltura_Client_Configuration();
     $config->serviceUrl = self::getServiceUrl();
     $config->curlTimeout = self::getCurlTimeout();
     $config->setLogger(new Infra_ClientLoggingProxy());
     $settings = Zend_Registry::get('config')->settings;
     if (isset($settings->clientConfig)) {
         foreach ($settings->clientConfig as $attr => $value) {
             $config->{$attr} = $value;
         }
     }
     $front = Zend_Controller_Front::getInstance();
     $bootstrap = $front->getParam('bootstrap');
     if ($bootstrap) {
         $enviroment = $bootstrap->getApplication()->getEnvironment();
         if ($enviroment === 'development') {
             $config->startZendDebuggerSession = true;
         }
     }
     $client = new Kaltura_Client_Client($config);
     $client->setClientTag('Kaltura-' . $settings->applicationName);
     $client->setKs($ks);
     self::$client = $client;
     return $client;
 }
开发者ID:DBezemer,项目名称:server,代码行数:37,代码来源:ClientHelper.php


示例2: getClient

 /**
  * 
  * @return Kaltura_Client_Client
  */
 public static function getClient()
 {
     if (self::$client) {
         return self::$client;
     }
     if (!class_exists('Kaltura_Client_Client')) {
         throw new Exception('Kaltura client not found, maybe it wasn\'t generated');
     }
     $partnerId = self::getPartnerId();
     $ks = self::getKs();
     $config = new Kaltura_Client_Configuration($partnerId);
     $config->serviceUrl = self::getServiceUrl();
     $config->curlTimeout = self::getCurlTimeout();
     $config->setLogger(new Infra_ClientLoggingProxy());
     $front = Zend_Controller_Front::getInstance();
     $bootstrap = $front->getParam('bootstrap');
     if ($bootstrap) {
         $enviroment = $bootstrap->getApplication()->getEnvironment();
         if ($enviroment === 'development') {
             $config->startZendDebuggerSession = true;
         }
     }
     $client = new Kaltura_Client_Client($config);
     $client->setKs($ks);
     self::$client = $client;
     return $client;
 }
开发者ID:EfncoPlugins,项目名称:Media-Management-based-on-Kaltura,代码行数:31,代码来源:ClientHelper.php


示例3: getClient

 public static function getClient($partnerId, $serviceUrl, $sessionUserId, $adminSecret, $privacyContext = null)
 {
     $config = new \Kaltura_Client_Configuration($partnerId);
     $config->serviceUrl = $serviceUrl;
     $client = new \Kaltura_Client_Client($config);
     $expirySeconds = 86400;
     if (empty($privacyContext)) {
         $privileges = 'disableentitlement';
     } else {
         $privileges = "privacycontext:{$privacyContext},enableentitlement,sessionkey:{$sessionUserId}";
     }
     $ks = $client->generateSessionV2($adminSecret, $sessionUserId, \Kaltura_Client_Enum_SessionType::ADMIN, $partnerId, $expirySeconds, $privileges);
     $client->setKs($ks);
     return $client;
 }
开发者ID:Blaeg,项目名称:kaltura-migrations,代码行数:15,代码来源:Client.php


示例4: __construct

 public function __construct(SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     $this->offlineMessage = (string) $xml->offlineMessage;
     $this->streamRemoteId = (string) $xml->streamRemoteId;
     $this->streamRemoteBackupId = (string) $xml->streamRemoteBackupId;
     if (empty($xml->bitrates)) {
         $this->bitrates = array();
     } else {
         $this->bitrates = Kaltura_Client_Client::unmarshalItem($xml->bitrates);
     }
     $this->primaryBroadcastingUrl = (string) $xml->primaryBroadcastingUrl;
     $this->secondaryBroadcastingUrl = (string) $xml->secondaryBroadcastingUrl;
     $this->streamName = (string) $xml->streamName;
     $this->streamUrl = (string) $xml->streamUrl;
     $this->hlsStreamUrl = (string) $xml->hlsStreamUrl;
     if (count($xml->dvrStatus)) {
         $this->dvrStatus = (int) $xml->dvrStatus;
     }
     if (count($xml->dvrWindow)) {
         $this->dvrWindow = (int) $xml->dvrWindow;
     }
     $this->urlManager = (string) $xml->urlManager;
     if (empty($xml->liveStreamConfigurations)) {
         $this->liveStreamConfigurations = array();
     } else {
         $this->liveStreamConfigurations = Kaltura_Client_Client::unmarshalItem($xml->liveStreamConfigurations);
     }
 }
开发者ID:Postmedia-Digital,项目名称:kaltura-all-in-one-video-pack,代码行数:32,代码来源:LiveStreamEntry.php


示例5: __construct

 public function __construct(SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     $this->message = (string) $xml->message;
     if (empty($xml->actions)) {
         $this->actions = array();
     } else {
         $this->actions = Kaltura_Client_Client::unmarshalItem($xml->actions);
     }
     if (empty($xml->conditions)) {
         $this->conditions = array();
     } else {
         $this->conditions = Kaltura_Client_Client::unmarshalItem($xml->conditions);
     }
     if (empty($xml->contexts)) {
         $this->contexts = array();
     } else {
         $this->contexts = Kaltura_Client_Client::unmarshalItem($xml->contexts);
     }
     if (!empty($xml->stopProcessing)) {
         $this->stopProcessing = true;
     }
 }
开发者ID:Postmedia-Digital,项目名称:kaltura-all-in-one-video-pack,代码行数:26,代码来源:Rule.php


示例6: __construct

 public function __construct(SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     $this->srcFileSyncLocalPath = (string) $xml->srcFileSyncLocalPath;
     $this->actualSrcFileSyncLocalPath = (string) $xml->actualSrcFileSyncLocalPath;
     $this->srcFileSyncRemoteUrl = (string) $xml->srcFileSyncRemoteUrl;
     if (count($xml->engineVersion)) {
         $this->engineVersion = (int) $xml->engineVersion;
     }
     if (count($xml->flavorParamsOutputId)) {
         $this->flavorParamsOutputId = (int) $xml->flavorParamsOutputId;
     }
     if (!empty($xml->flavorParamsOutput)) {
         $this->flavorParamsOutput = Kaltura_Client_Client::unmarshalItem($xml->flavorParamsOutput);
     }
     if (count($xml->mediaInfoId)) {
         $this->mediaInfoId = (int) $xml->mediaInfoId;
     }
     if (count($xml->currentOperationSet)) {
         $this->currentOperationSet = (int) $xml->currentOperationSet;
     }
     if (count($xml->currentOperationIndex)) {
         $this->currentOperationIndex = (int) $xml->currentOperationIndex;
     }
 }
开发者ID:Postmedia-Digital,项目名称:kaltura-all-in-one-video-pack,代码行数:28,代码来源:ConvartableJobData.php


示例7: __construct

 public function __construct(SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     if (count($xml->id)) {
         $this->id = (int) $xml->id;
     }
     if (count($xml->createdAt)) {
         $this->createdAt = (int) $xml->createdAt;
     }
     if (count($xml->updatedAt)) {
         $this->updatedAt = (int) $xml->updatedAt;
     }
     if (count($xml->partnerId)) {
         $this->partnerId = (int) $xml->partnerId;
     }
     $this->name = (string) $xml->name;
     if (count($xml->status)) {
         $this->status = (int) $xml->status;
     }
     $this->engineType = (string) $xml->engineType;
     if (!empty($xml->entryFilter)) {
         $this->entryFilter = Kaltura_Client_Client::unmarshalItem($xml->entryFilter);
     }
     if (count($xml->actionIfInfected)) {
         $this->actionIfInfected = (int) $xml->actionIfInfected;
     }
 }
开发者ID:Postmedia-Digital,项目名称:kaltura-all-in-one-video-pack,代码行数:30,代码来源:VirusScanProfile.php


示例8: __construct

 public function __construct(SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     $this->playlistContent = (string) $xml->playlistContent;
     if (empty($xml->filters)) {
         $this->filters = array();
     } else {
         $this->filters = Kaltura_Client_Client::unmarshalItem($xml->filters);
     }
     if (count($xml->totalResults)) {
         $this->totalResults = (int) $xml->totalResults;
     }
     if (count($xml->playlistType)) {
         $this->playlistType = (int) $xml->playlistType;
     }
     if (count($xml->plays)) {
         $this->plays = (int) $xml->plays;
     }
     if (count($xml->views)) {
         $this->views = (int) $xml->views;
     }
     if (count($xml->duration)) {
         $this->duration = (int) $xml->duration;
     }
 }
开发者ID:Postmedia-Digital,项目名称:kaltura-all-in-one-video-pack,代码行数:28,代码来源:Playlist.php


示例9: __construct

 public function __construct(SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     if (count($xml->distributionProfileId)) {
         $this->distributionProfileId = (int) $xml->distributionProfileId;
     }
     if (!empty($xml->distributionProfile)) {
         $this->distributionProfile = Kaltura_Client_Client::unmarshalItem($xml->distributionProfile);
     }
     if (count($xml->entryDistributionId)) {
         $this->entryDistributionId = (int) $xml->entryDistributionId;
     }
     if (!empty($xml->entryDistribution)) {
         $this->entryDistribution = Kaltura_Client_Client::unmarshalItem($xml->entryDistribution);
     }
     $this->remoteId = (string) $xml->remoteId;
     $this->providerType = (string) $xml->providerType;
     if (!empty($xml->providerData)) {
         $this->providerData = Kaltura_Client_Client::unmarshalItem($xml->providerData);
     }
     $this->results = (string) $xml->results;
     $this->sentData = (string) $xml->sentData;
     if (empty($xml->mediaFiles)) {
         $this->mediaFiles = array();
     } else {
         $this->mediaFiles = Kaltura_Client_Client::unmarshalItem($xml->mediaFiles);
     }
 }
开发者ID:Postmedia-Digital,项目名称:kaltura-all-in-one-video-pack,代码行数:31,代码来源:DistributionJobData.php


示例10: __construct

 public function __construct(SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     $this->userId = (string) $xml->userId;
     $this->uploadedBy = (string) $xml->uploadedBy;
     if (count($xml->conversionProfileId)) {
         $this->conversionProfileId = (int) $xml->conversionProfileId;
     }
     $this->resultsFileLocalPath = (string) $xml->resultsFileLocalPath;
     $this->resultsFileUrl = (string) $xml->resultsFileUrl;
     if (count($xml->numOfEntries)) {
         $this->numOfEntries = (int) $xml->numOfEntries;
     }
     if (count($xml->numOfObjects)) {
         $this->numOfObjects = (int) $xml->numOfObjects;
     }
     $this->filePath = (string) $xml->filePath;
     $this->bulkUploadObjectType = (string) $xml->bulkUploadObjectType;
     $this->fileName = (string) $xml->fileName;
     if (!empty($xml->objectData)) {
         $this->objectData = Kaltura_Client_Client::unmarshalItem($xml->objectData);
     }
     $this->type = (string) $xml->type;
     $this->emailRecipients = (string) $xml->emailRecipients;
     if (count($xml->numOfErrorObjects)) {
         $this->numOfErrorObjects = (int) $xml->numOfErrorObjects;
     }
 }
开发者ID:Postmedia-Digital,项目名称:kaltura-all-in-one-video-pack,代码行数:31,代码来源:BulkUploadJobData.php


示例11: __construct

 public function __construct(SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     if (count($xml->id)) {
         $this->id = (int) $xml->id;
     }
     if (count($xml->partnerId)) {
         $this->partnerId = (int) $xml->partnerId;
     }
     $this->name = (string) $xml->name;
     $this->systemName = (string) $xml->systemName;
     $this->description = (string) $xml->description;
     if (count($xml->createdAt)) {
         $this->createdAt = (int) $xml->createdAt;
     }
     if (count($xml->updatedAt)) {
         $this->updatedAt = (int) $xml->updatedAt;
     }
     if (count($xml->isDefault)) {
         $this->isDefault = (int) $xml->isDefault;
     }
     if (empty($xml->rules)) {
         $this->rules = array();
     } else {
         $this->rules = Kaltura_Client_Client::unmarshalItem($xml->rules);
     }
 }
开发者ID:Postmedia-Digital,项目名称:kaltura-all-in-one-video-pack,代码行数:30,代码来源:AccessControlProfile.php


示例12: __construct

 public function __construct(SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     if (count($xml->id)) {
         $this->id = (int) $xml->id;
     }
     if (count($xml->partnerId)) {
         $this->partnerId = (int) $xml->partnerId;
     }
     $this->name = (string) $xml->name;
     $this->systemName = (string) $xml->systemName;
     $this->description = (string) $xml->description;
     if (count($xml->createdAt)) {
         $this->createdAt = (int) $xml->createdAt;
     }
     if (count($xml->isSystemDefault)) {
         $this->isSystemDefault = (int) $xml->isSystemDefault;
     }
     $this->tags = (string) $xml->tags;
     if (empty($xml->requiredPermissions)) {
         $this->requiredPermissions = array();
     } else {
         $this->requiredPermissions = Kaltura_Client_Client::unmarshalItem($xml->requiredPermissions);
     }
     if (count($xml->sourceRemoteStorageProfileId)) {
         $this->sourceRemoteStorageProfileId = (int) $xml->sourceRemoteStorageProfileId;
     }
     if (count($xml->remoteStorageProfileIds)) {
         $this->remoteStorageProfileIds = (int) $xml->remoteStorageProfileIds;
     }
     $this->mediaParserType = (string) $xml->mediaParserType;
 }
开发者ID:Postmedia-Digital,项目名称:kaltura-all-in-one-video-pack,代码行数:35,代码来源:AssetParams.php


示例13: __construct

 public function __construct(SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     if (!empty($xml->field)) {
         $this->field = Kaltura_Client_Client::unmarshalItem($xml->field);
     }
 }
开发者ID:Postmedia-Digital,项目名称:kaltura-all-in-one-video-pack,代码行数:10,代码来源:FieldCompareCondition.php


示例14: __construct

 public function __construct(SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     $this->key = (string) $xml->key;
     if (!empty($xml->value)) {
         $this->value = Kaltura_Client_Client::unmarshalItem($xml->value);
     }
 }
开发者ID:Postmedia-Digital,项目名称:kaltura-all-in-one-video-pack,代码行数:11,代码来源:EventNotificationParameter.php


示例15: __construct

 public function __construct(SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     $this->orderBy = (string) $xml->orderBy;
     if (!empty($xml->advancedSearch)) {
         $this->advancedSearch = Kaltura_Client_Client::unmarshalItem($xml->advancedSearch);
     }
 }
开发者ID:Postmedia-Digital,项目名称:kaltura-all-in-one-video-pack,代码行数:11,代码来源:Filter.php


示例16: __construct

 public function __construct(SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     if (count($xml->id)) {
         $this->id = (int) $xml->id;
     }
     if (count($xml->partnerId)) {
         $this->partnerId = (int) $xml->partnerId;
     }
     $this->name = (string) $xml->name;
     $this->description = (string) $xml->description;
     $this->type = (string) $xml->type;
     if (count($xml->status)) {
         $this->status = (int) $xml->status;
     }
     if (count($xml->conversionProfileId)) {
         $this->conversionProfileId = (int) $xml->conversionProfileId;
     }
     if (count($xml->dc)) {
         $this->dc = (int) $xml->dc;
     }
     $this->path = (string) $xml->path;
     if (count($xml->fileSizeCheckInterval)) {
         $this->fileSizeCheckInterval = (int) $xml->fileSizeCheckInterval;
     }
     if (count($xml->fileDeletePolicy)) {
         $this->fileDeletePolicy = (int) $xml->fileDeletePolicy;
     }
     if (count($xml->autoFileDeleteDays)) {
         $this->autoFileDeleteDays = (int) $xml->autoFileDeleteDays;
     }
     $this->fileHandlerType = (string) $xml->fileHandlerType;
     $this->fileNamePatterns = (string) $xml->fileNamePatterns;
     if (!empty($xml->fileHandlerConfig)) {
         $this->fileHandlerConfig = Kaltura_Client_Client::unmarshalItem($xml->fileHandlerConfig);
     }
     $this->tags = (string) $xml->tags;
     $this->errorCode = (string) $xml->errorCode;
     $this->errorDescription = (string) $xml->errorDescription;
     $this->ignoreFileNamePatterns = (string) $xml->ignoreFileNamePatterns;
     if (count($xml->createdAt)) {
         $this->createdAt = (int) $xml->createdAt;
     }
     if (count($xml->updatedAt)) {
         $this->updatedAt = (int) $xml->updatedAt;
     }
     if (count($xml->lastAccessedAt)) {
         $this->lastAccessedAt = (int) $xml->lastAccessedAt;
     }
 }
开发者ID:Postmedia-Digital,项目名称:kaltura-all-in-one-video-pack,代码行数:53,代码来源:DropFolder.php


示例17: __construct

 public function __construct(SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     if (empty($xml->emailRecipients)) {
         $this->emailRecipients = array();
     } else {
         $this->emailRecipients = Kaltura_Client_Client::unmarshalItem($xml->emailRecipients);
     }
 }
开发者ID:Postmedia-Digital,项目名称:kaltura-all-in-one-video-pack,代码行数:12,代码来源:EmailNotificationStaticRecipientProvider.php


示例18: __construct

 public function __construct(SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     $this->validationError = (string) $xml->validationError;
     if (empty($xml->assetDistributionConditions)) {
         $this->assetDistributionConditions = array();
     } else {
         $this->assetDistributionConditions = Kaltura_Client_Client::unmarshalItem($xml->assetDistributionConditions);
     }
 }
开发者ID:Postmedia-Digital,项目名称:kaltura-all-in-one-video-pack,代码行数:13,代码来源:AssetDistributionRule.php


示例19: __construct

 public function __construct(SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     if (!empty($xml->resource)) {
         $this->resource = Kaltura_Client_Client::unmarshalItem($xml->resource);
     }
     if (count($xml->assetParamsId)) {
         $this->assetParamsId = (int) $xml->assetParamsId;
     }
 }
开发者ID:Postmedia-Digital,项目名称:kaltura-all-in-one-video-pack,代码行数:13,代码来源:AssetParamsResourceContainer.php


示例20: __construct

 public function __construct(SimpleXMLElement $xml = null)
 {
     parent::__construct($xml);
     if (is_null($xml)) {
         return;
     }
     $this->columns = (string) $xml->columns;
     if (empty($xml->results)) {
         $this->results = array();
     } else {
         $this->results = Kaltura_Client_Client::unmarshalItem($xml->results);
     }
 }
开发者ID:Postmedia-Digital,项目名称:kaltura-all-in-one-video-pack,代码行数:13,代码来源:ReportResponse.php



注:本文中的Kaltura_Client_Client类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP Kaltura_Client_ObjectBase类代码示例发布时间:2022-05-23
下一篇:
PHP KalturaTypedArray类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap