本文整理匯總了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]);
}