当前位置: 首页>>代码示例>>PHP>>正文


PHP KalturaClient::setConfig方法代码示例

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


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

示例1: unimpersonate

 protected function unimpersonate()
 {
     $clientConfig = $this->client->getConfig();
     $clientConfig->partnerId = $this->batchPartnerId;
     $this->client->setConfig($clientConfig);
 }
开发者ID:EfncoPlugins,项目名称:Media-Management-based-on-Kaltura,代码行数:6,代码来源:KCopyingEngine.php

示例2: KalturaConfiguration

$storage_base_dir = $argv[8];
$delivery_url = $argv[9];
$username = $argv[10];
$passwd = $argv[11];
$storage_type = $argv[12];
$config = new KalturaConfiguration($partner_id);
$config->serviceUrl = $service_url;
$client = new KalturaClient($config);
$user_id = null;
$expiry = null;
$privileges = null;
$type = KalturaSessionType::ADMIN;
$ks = $client->user->login(-2, $minus2_mail, $minus2_passwd, $expiry, $privileges);
$client->setKs($ks);
$config->partnerId = $partner_id;
$client->setConfig($config);
if ($storage_type == S3) {
    $storageProfile = new KalturaAmazonS3StorageProfile();
    $storageProfile->filesPermissionInS3 = KalturaAmazonS3StorageProfileFilesPermissionLevel::ACL_PUBLIC_READ;
} else {
    $storageProfile = new KalturaStorageProfile();
}
$storageProfile->name = $storage_display_name;
$storageProfile->systemName = $storage_display_name;
$storageProfile->desciption = $storage_display_name . ' - auto generated by ' . __FILE__ . "\n";
$storageProfile->pathManagerClass = 'kPathManager';
$storageProfile->status = KalturaStorageProfileStatus::AUTOMATIC;
$storageProfile->protocol = $protocols[$protocol];
$storageProfile->storageUrl = $storage_url;
$storageProfile->storageBaseDir = $storage_base_dir;
$storageProfile->storageUsername = $username;
开发者ID:carise,项目名称:platform-install-packages,代码行数:31,代码来源:kaltura-remote-storage-config.php

示例3: impersonate

 public function impersonate($partnerId)
 {
     $config = $this->kalturaClient->getConfig();
     $config->partnerId = $partnerId;
     $this->kalturaClient->setConfig($config);
 }
开发者ID:richhl,项目名称:kalturaCE,代码行数:6,代码来源:DistributionEngine.php

示例4: unimpersonate

 public function unimpersonate()
 {
     $this->kClientConfig->partnerId = $this->taskConfig->getPartnerId();
     $this->kClient->setConfig($this->kClientConfig);
 }
开发者ID:EfncoPlugins,项目名称:Media-Management-based-on-Kaltura,代码行数:5,代码来源:KBulkUploadEngine.php


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