本文整理汇总了PHP中KalturaClient::queueServiceActionCall方法的典型用法代码示例。如果您正苦于以下问题:PHP KalturaClient::queueServiceActionCall方法的具体用法?PHP KalturaClient::queueServiceActionCall怎么用?PHP KalturaClient::queueServiceActionCall使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类KalturaClient
的用法示例。
在下文中一共展示了KalturaClient::queueServiceActionCall方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getKalturaPlaylist
/**
* Takes in a :
* $wid, string, The widget id
* $playlistId, string, The playlist_id
*/
function getKalturaPlaylist($partnerId, $playlistId)
{
$config = new KalturaConfiguration($partnerId);
$config->serviceUrl = 'http://www.kaltura.com/';
$client = new KalturaClient($config);
$client->startMultiRequest();
// the session:
$kparams = array();
$client->addParam($kparams, 'widgetId', '_' . $partnerId);
$client->queueServiceActionCall('session', 'startWidgetSession', $kparams);
// The playlist meta:
$kparams = array();
$client->addParam($kparams, 'ks', '{1:result:ks}');
$client->addParam($kparams, 'id', $playlistId);
$client->queueServiceActionCall('playlist', 'get', $kparams);
// The playlist entries:
$client->queueServiceActionCall('playlist', 'execute', $kparams);
$rawResultObject = $client->doQueue();
return array('meta' => (array) $rawResultObject[1], 'playlist' => (array) $rawResultObject[2]);
}