/** * * @return string */ function getFaspUrl($flavorAssetId) { $kparams = array(); $this->client->addParam($kparams, "flavorAssetId", $flavorAssetId); $this->client->queueServiceActionCall("aspera_aspera", "getFaspUrl", null, $kparams); if ($this->client->isMultiRequest()) { return $this->client->getMultiRequestResult(); } $resultXml = $this->client->doQueue(); $resultXmlObject = new \SimpleXMLElement($resultXml); \Kaltura\Client\ParseUtils::checkIfError($resultXmlObject->result); $resultObject = (string) \Kaltura\Client\ParseUtils::unmarshalSimpleType($resultXmlObject->result); return $resultObject; }
/** * * @return \Kaltura\Client\Type\UploadResponse */ function getUploadedFileTokenByFileName($fileName) { $kparams = array(); $this->client->addParam($kparams, "fileName", $fileName); $this->client->queueServiceActionCall("upload", "getUploadedFileTokenByFileName", "KalturaUploadResponse", $kparams); if ($this->client->isMultiRequest()) { return $this->client->getMultiRequestResult(); } $resultXml = $this->client->doQueue(); $resultXmlObject = new \SimpleXMLElement($resultXml); \Kaltura\Client\ParseUtils::checkIfError($resultXmlObject->result); $resultObject = \Kaltura\Client\ParseUtils::unmarshalObject($resultXmlObject->result, "KalturaUploadResponse"); $this->client->validateObjectType($resultObject, "\\Kaltura\\Client\\Type\\UploadResponse"); return $resultObject; }
/** * Creates new download job for multiple entry ids (comma separated), an email will be sent when the job is done * This sevice support the following entries: * - MediaEntry * - Video will be converted using the flavor params id * - Audio will be downloaded as MP3 * - Image will be downloaded as Jpeg * - MixEntry will be flattened using the flavor params id * - Other entry types are not supported * Returns the admin email that the email message will be sent to * * * @return string */ function xAddBulkDownload($entryIds, $flavorParamsId = "") { $kparams = array(); $this->client->addParam($kparams, "entryIds", $entryIds); $this->client->addParam($kparams, "flavorParamsId", $flavorParamsId); $this->client->queueServiceActionCall("xinternal", "xAddBulkDownload", null, $kparams); if ($this->client->isMultiRequest()) { return $this->client->getMultiRequestResult(); } $resultXml = $this->client->doQueue(); $resultXmlObject = new \SimpleXMLElement($resultXml); \Kaltura\Client\ParseUtils::checkIfError($resultXmlObject->result); $resultObject = (string) \Kaltura\Client\ParseUtils::unmarshalSimpleType($resultXmlObject->result); return $resultObject; }
/** * Update media server status * * * @return \Kaltura\Client\Type\MediaServer */ function reportStatus($hostname, \Kaltura\Client\Type\MediaServerStatus $mediaServerStatus) { $kparams = array(); $this->client->addParam($kparams, "hostname", $hostname); $this->client->addParam($kparams, "mediaServerStatus", $mediaServerStatus->toParams()); $this->client->queueServiceActionCall("mediaserver", "reportStatus", "KalturaMediaServer", $kparams); if ($this->client->isMultiRequest()) { return $this->client->getMultiRequestResult(); } $resultXml = $this->client->doQueue(); $resultXmlObject = new \SimpleXMLElement($resultXml); \Kaltura\Client\ParseUtils::checkIfError($resultXmlObject->result); $resultObject = \Kaltura\Client\ParseUtils::unmarshalObject($resultXmlObject->result, "KalturaMediaServer"); $this->client->validateObjectType($resultObject, "\\Kaltura\\Client\\Type\\MediaServer"); return $resultObject; }
/** * Return the notifications for a specific entry id and type * * * @return \Kaltura\Client\Type\ClientNotification */ function getClientNotification($entryId, $type) { $kparams = array(); $this->client->addParam($kparams, "entryId", $entryId); $this->client->addParam($kparams, "type", $type); $this->client->queueServiceActionCall("notification", "getClientNotification", "KalturaClientNotification", $kparams); if ($this->client->isMultiRequest()) { return $this->client->getMultiRequestResult(); } $resultXml = $this->client->doQueue(); $resultXmlObject = new \SimpleXMLElement($resultXml); \Kaltura\Client\ParseUtils::checkIfError($resultXmlObject->result); $resultObject = \Kaltura\Client\ParseUtils::unmarshalObject($resultXmlObject->result, "KalturaClientNotification"); $this->client->validateObjectType($resultObject, "\\Kaltura\\Client\\Type\\ClientNotification"); return $resultObject; }
/** * List media info objects by filter and pager * * * @return \Kaltura\Client\Type\MediaInfoListResponse */ function listAction(\Kaltura\Client\Type\MediaInfoFilter $filter = null, \Kaltura\Client\Type\FilterPager $pager = null) { $kparams = array(); if ($filter !== null) { $this->client->addParam($kparams, "filter", $filter->toParams()); } if ($pager !== null) { $this->client->addParam($kparams, "pager", $pager->toParams()); } $this->client->queueServiceActionCall("mediainfo", "list", "KalturaMediaInfoListResponse", $kparams); if ($this->client->isMultiRequest()) { return $this->client->getMultiRequestResult(); } $resultXml = $this->client->doQueue(); $resultXmlObject = new \SimpleXMLElement($resultXml); \Kaltura\Client\ParseUtils::checkIfError($resultXmlObject->result); $resultObject = \Kaltura\Client\ParseUtils::unmarshalObject($resultXmlObject->result, "KalturaMediaInfoListResponse"); $this->client->validateObjectType($resultObject, "\\Kaltura\\Client\\Type\\MediaInfoListResponse"); return $resultObject; }
/** * Scan flavor asset according to virus scan profile * * * @return int */ function scan($flavorAssetId, $virusScanProfileId = null) { $kparams = array(); $this->client->addParam($kparams, "flavorAssetId", $flavorAssetId); $this->client->addParam($kparams, "virusScanProfileId", $virusScanProfileId); $this->client->queueServiceActionCall("virusscan_virusscanprofile", "scan", null, $kparams); if ($this->client->isMultiRequest()) { return $this->client->getMultiRequestResult(); } $resultXml = $this->client->doQueue(); $resultXmlObject = new \SimpleXMLElement($resultXml); \Kaltura\Client\ParseUtils::checkIfError($resultXmlObject->result); $resultObject = (int) \Kaltura\Client\ParseUtils::unmarshalSimpleType($resultXmlObject->result); return $resultObject; }
/** * Get Flavor Params by Conversion Profile ID * * * @return array */ function getByConversionProfileId($conversionProfileId) { $kparams = array(); $this->client->addParam($kparams, "conversionProfileId", $conversionProfileId); $this->client->queueServiceActionCall("flavorparams", "getByConversionProfileId", "KalturaFlavorParams", $kparams); if ($this->client->isMultiRequest()) { return $this->client->getMultiRequestResult(); } $resultXml = $this->client->doQueue(); $resultXmlObject = new \SimpleXMLElement($resultXml); \Kaltura\Client\ParseUtils::checkIfError($resultXmlObject->result); $resultObject = \Kaltura\Client\ParseUtils::unmarshalArray($resultXmlObject->result, "KalturaFlavorParams"); $this->client->validateObjectType($resultObject, "array"); return $resultObject; }
/** * * @return \Kaltura\Client\Type\BulkUpload */ function addFromBulkUpload($fileData, \Kaltura\Client\Type\BulkUploadJobData $bulkUploadData = null, \Kaltura\Client\Type\BulkUploadCategoryUserData $bulkUploadCategoryUserData = null) { $kparams = array(); $kfiles = array(); $this->client->addParam($kfiles, "fileData", $fileData); if ($bulkUploadData !== null) { $this->client->addParam($kparams, "bulkUploadData", $bulkUploadData->toParams()); } if ($bulkUploadCategoryUserData !== null) { $this->client->addParam($kparams, "bulkUploadCategoryUserData", $bulkUploadCategoryUserData->toParams()); } $this->client->queueServiceActionCall("categoryuser", "addFromBulkUpload", "KalturaBulkUpload", $kparams, $kfiles); if ($this->client->isMultiRequest()) { return $this->client->getMultiRequestResult(); } $resultXml = $this->client->doQueue(); $resultXmlObject = new \SimpleXMLElement($resultXml); \Kaltura\Client\ParseUtils::checkIfError($resultXmlObject->result); $resultObject = \Kaltura\Client\ParseUtils::unmarshalObject($resultXmlObject->result, "KalturaBulkUpload"); $this->client->validateObjectType($resultObject, "\\Kaltura\\Client\\Type\\BulkUpload"); return $resultObject; }
/** * * @return bool */ function checkLikeExists($entryId, $userId = null) { $kparams = array(); $this->client->addParam($kparams, "entryId", $entryId); $this->client->addParam($kparams, "userId", $userId); $this->client->queueServiceActionCall("like_like", "checkLikeExists", null, $kparams); if ($this->client->isMultiRequest()) { return $this->client->getMultiRequestResult(); } $resultXml = $this->client->doQueue(); $resultXmlObject = new \SimpleXMLElement($resultXml); \Kaltura\Client\ParseUtils::checkIfError($resultXmlObject->result); $resultObject = (bool) \Kaltura\Client\ParseUtils::unmarshalSimpleType($resultXmlObject->result); return $resultObject; }
/** * Function to change a sub-publisher's status * * * @return */ function updateStatus($id, $status) { $kparams = array(); $this->client->addParam($kparams, "id", $id); $this->client->addParam($kparams, "status", $status); $this->client->queueServiceActionCall("varconsole_varconsole", "updateStatus", null, $kparams); if ($this->client->isMultiRequest()) { return $this->client->getMultiRequestResult(); } $resultXml = $this->client->doQueue(); $resultXmlObject = new \SimpleXMLElement($resultXml); \Kaltura\Client\ParseUtils::checkIfError($resultXmlObject->result); }
/** * Count media entries by filter. * * * @return int */ function count(\Kaltura\Client\Plugin\ExternalMedia\Type\ExternalMediaEntryFilter $filter = null) { $kparams = array(); if ($filter !== null) { $this->client->addParam($kparams, "filter", $filter->toParams()); } $this->client->queueServiceActionCall("externalmedia_externalmedia", "count", null, $kparams); if ($this->client->isMultiRequest()) { return $this->client->getMultiRequestResult(); } $resultXml = $this->client->doQueue(); $resultXmlObject = new \SimpleXMLElement($resultXml); \Kaltura\Client\ParseUtils::checkIfError($resultXmlObject->result); $resultObject = (int) \Kaltura\Client\ParseUtils::unmarshalSimpleType($resultXmlObject->result); return $resultObject; }
/** * Cancels document replacement * * * @return \Kaltura\Client\Plugin\Document\Type\DocumentEntry */ function cancelReplace($entryId) { $kparams = array(); $this->client->addParam($kparams, "entryId", $entryId); $this->client->queueServiceActionCall("document", "cancelReplace", "KalturaDocumentEntry", $kparams); if ($this->client->isMultiRequest()) { return $this->client->getMultiRequestResult(); } $resultXml = $this->client->doQueue(); $resultXmlObject = new \SimpleXMLElement($resultXml); \Kaltura\Client\ParseUtils::checkIfError($resultXmlObject->result); $resultObject = \Kaltura\Client\ParseUtils::unmarshalObject($resultXmlObject->result, "KalturaDocumentEntry"); $this->client->validateObjectType($resultObject, "\\Kaltura\\Client\\Plugin\\Document\\Type\\DocumentEntry"); return $resultObject; }
/** * Start a session for Kaltura's flash widgets * * * @return \Kaltura\Client\Type\StartWidgetSessionResponse */ function startWidgetSession($widgetId, $expiry = 86400) { $kparams = array(); $this->client->addParam($kparams, "widgetId", $widgetId); $this->client->addParam($kparams, "expiry", $expiry); $this->client->queueServiceActionCall("session", "startWidgetSession", "KalturaStartWidgetSessionResponse", $kparams); if ($this->client->isMultiRequest()) { return $this->client->getMultiRequestResult(); } $resultXml = $this->client->doQueue(); $resultXmlObject = new \SimpleXMLElement($resultXml); \Kaltura\Client\ParseUtils::checkIfError($resultXmlObject->result); $resultObject = \Kaltura\Client\ParseUtils::unmarshalObject($resultXmlObject->result, "KalturaStartWidgetSessionResponse"); $this->client->validateObjectType($resultObject, "\\Kaltura\\Client\\Type\\StartWidgetSessionResponse"); return $resultObject; }
/** * Creates perioding metadata sync-point events on a live stream * * * @return */ function createPeriodicSyncPoints($entryId, $interval, $duration) { $kparams = array(); $this->client->addParam($kparams, "entryId", $entryId); $this->client->addParam($kparams, "interval", $interval); $this->client->addParam($kparams, "duration", $duration); $this->client->queueServiceActionCall("livestream", "createPeriodicSyncPoints", null, $kparams); if ($this->client->isMultiRequest()) { return $this->client->getMultiRequestResult(); } $resultXml = $this->client->doQueue(); $resultXmlObject = new \SimpleXMLElement($resultXml); \Kaltura\Client\ParseUtils::checkIfError($resultXmlObject->result); }
/** * Retrieve a list of all available versions by object type * * * @return array */ function getAvailableTypes() { $kparams = array(); $this->client->queueServiceActionCall("uiconf", "getAvailableTypes", "KalturaUiConfTypeInfo", $kparams); if ($this->client->isMultiRequest()) { return $this->client->getMultiRequestResult(); } $resultXml = $this->client->doQueue(); $resultXmlObject = new \SimpleXMLElement($resultXml); \Kaltura\Client\ParseUtils::checkIfError($resultXmlObject->result); $resultObject = \Kaltura\Client\ParseUtils::unmarshalArray($resultXmlObject->result, "KalturaUiConfTypeInfo"); $this->client->validateObjectType($resultObject, "array"); return $resultObject; }
/** * Creates a new user role object that is a duplicate of an existing role. * * * @return \Kaltura\Client\Type\UserRole */ function cloneAction($userRoleId) { $kparams = array(); $this->client->addParam($kparams, "userRoleId", $userRoleId); $this->client->queueServiceActionCall("userrole", "clone", "KalturaUserRole", $kparams); if ($this->client->isMultiRequest()) { return $this->client->getMultiRequestResult(); } $resultXml = $this->client->doQueue(); $resultXmlObject = new \SimpleXMLElement($resultXml); \Kaltura\Client\ParseUtils::checkIfError($resultXmlObject->result); $resultObject = \Kaltura\Client\ParseUtils::unmarshalObject($resultXmlObject->result, "KalturaUserRole"); $this->client->validateObjectType($resultObject, "\\Kaltura\\Client\\Type\\UserRole"); return $resultObject; }
/** * * @return \Kaltura\Client\Type\ObjectListResponse */ function getDryRunResults($requestId) { $kparams = array(); $this->client->addParam($kparams, "requestId", $requestId); $this->client->queueServiceActionCall("scheduledtask_scheduledtaskprofile", "getDryRunResults", "KalturaObjectListResponse", $kparams); if ($this->client->isMultiRequest()) { return $this->client->getMultiRequestResult(); } $resultXml = $this->client->doQueue(); $resultXmlObject = new \SimpleXMLElement($resultXml); \Kaltura\Client\ParseUtils::checkIfError($resultXmlObject->result); $resultObject = \Kaltura\Client\ParseUtils::unmarshalObject($resultXmlObject->result, "KalturaObjectListResponse"); $this->client->validateObjectType($resultObject, "\\Kaltura\\Client\\Type\\ObjectListResponse"); return $resultObject; }
/** * Anonymously rank a mix entry, no validation is done on duplicate rankings * * * @return */ function anonymousRank($entryId, $rank) { $kparams = array(); $this->client->addParam($kparams, "entryId", $entryId); $this->client->addParam($kparams, "rank", $rank); $this->client->queueServiceActionCall("mixing", "anonymousRank", null, $kparams); if ($this->client->isMultiRequest()) { return $this->client->getMultiRequestResult(); } $resultXml = $this->client->doQueue(); $resultXmlObject = new \SimpleXMLElement($resultXml); \Kaltura\Client\ParseUtils::checkIfError($resultXmlObject->result); }
/** * add KalturaMediaEntry from email ingestion * * * @return \Kaltura\Client\Type\MediaEntry */ function addMediaEntry(\Kaltura\Client\Type\MediaEntry $mediaEntry, $uploadTokenId, $emailProfId, $fromAddress, $emailMsgId) { $kparams = array(); $this->client->addParam($kparams, "mediaEntry", $mediaEntry->toParams()); $this->client->addParam($kparams, "uploadTokenId", $uploadTokenId); $this->client->addParam($kparams, "emailProfId", $emailProfId); $this->client->addParam($kparams, "fromAddress", $fromAddress); $this->client->addParam($kparams, "emailMsgId", $emailMsgId); $this->client->queueServiceActionCall("emailingestionprofile", "addMediaEntry", "KalturaMediaEntry", $kparams); if ($this->client->isMultiRequest()) { return $this->client->getMultiRequestResult(); } $resultXml = $this->client->doQueue(); $resultXmlObject = new \SimpleXMLElement($resultXml); \Kaltura\Client\ParseUtils::checkIfError($resultXmlObject->result); $resultObject = \Kaltura\Client\ParseUtils::unmarshalObject($resultXmlObject->result, "KalturaMediaEntry"); $this->client->validateObjectType($resultObject, "\\Kaltura\\Client\\Type\\MediaEntry"); return $resultObject; }
/** * * @return */ function indexCategoryEntryTags($categoryId, $pcToDecrement, $pcToIncrement) { $kparams = array(); $this->client->addParam($kparams, "categoryId", $categoryId); $this->client->addParam($kparams, "pcToDecrement", $pcToDecrement); $this->client->addParam($kparams, "pcToIncrement", $pcToIncrement); $this->client->queueServiceActionCall("tagsearch_tag", "indexCategoryEntryTags", null, $kparams); if ($this->client->isMultiRequest()) { return $this->client->getMultiRequestResult(); } $resultXml = $this->client->doQueue(); $resultXmlObject = new \SimpleXMLElement($resultXml); \Kaltura\Client\ParseUtils::checkIfError($resultXmlObject->result); }
/** * Use this action to report errors to the kaltura server. * * * @return */ function reportError($errorCode, $errorMessage) { $kparams = array(); $this->client->addParam($kparams, "errorCode", $errorCode); $this->client->addParam($kparams, "errorMessage", $errorMessage); $this->client->queueServiceActionCall("stats", "reportError", null, $kparams); if ($this->client->isMultiRequest()) { return $this->client->getMultiRequestResult(); } $resultXml = $this->client->doQueue(); $resultXmlObject = new \SimpleXMLElement($resultXml); \Kaltura\Client\ParseUtils::checkIfError($resultXmlObject->result); }
/** * Validates all registered media servers * * * @return */ function validateRegisteredMediaServers($entryId) { $kparams = array(); $this->client->addParam($kparams, "entryId", $entryId); $this->client->queueServiceActionCall("livestream", "validateRegisteredMediaServers", null, $kparams); if ($this->client->isMultiRequest()) { return $this->client->getMultiRequestResult(); } $resultXml = $this->client->doQueue(); $resultXmlObject = new \SimpleXMLElement($resultXml); \Kaltura\Client\ParseUtils::checkIfError($resultXmlObject->result); }
/** * request conversion for all entries that doesnt have the required flavor param * returns a comma-separated ids of conversion jobs * * * @return string */ function requestConversion($feedId) { $kparams = array(); $this->client->addParam($kparams, "feedId", $feedId); $this->client->queueServiceActionCall("syndicationfeed", "requestConversion", null, $kparams); if ($this->client->isMultiRequest()) { return $this->client->getMultiRequestResult(); } $resultXml = $this->client->doQueue(); $resultXmlObject = new \SimpleXMLElement($resultXml); \Kaltura\Client\ParseUtils::checkIfError($resultXmlObject->result); $resultObject = (string) \Kaltura\Client\ParseUtils::unmarshalSimpleType($resultXmlObject->result); return $resultObject; }
/** * delete cue point by id, and delete all children cue points * * * @return */ function delete($id) { $kparams = array(); $this->client->addParam($kparams, "id", $id); $this->client->queueServiceActionCall("annotation_annotation", "delete", null, $kparams); if ($this->client->isMultiRequest()) { return $this->client->getMultiRequestResult(); } $resultXml = $this->client->doQueue(); $resultXmlObject = new \SimpleXMLElement($resultXml); \Kaltura\Client\ParseUtils::checkIfError($resultXmlObject->result); }
/** * * @return string */ function getVersion() { $kparams = array(); $this->client->queueServiceActionCall("system", "getVersion", null, $kparams); if ($this->client->isMultiRequest()) { return $this->client->getMultiRequestResult(); } $resultXml = $this->client->doQueue(); $resultXmlObject = new \SimpleXMLElement($resultXml); \Kaltura\Client\ParseUtils::checkIfError($resultXmlObject->result); $resultObject = (string) \Kaltura\Client\ParseUtils::unmarshalSimpleType($resultXmlObject->result); return $resultObject; }
/** * Action transforms current metadata object XML using a provided XSL. * * * @return \Kaltura\Client\Plugin\Metadata\Type\Metadata */ function updateFromXSL($id, $xslFile) { $kparams = array(); $this->client->addParam($kparams, "id", $id); $kfiles = array(); $this->client->addParam($kfiles, "xslFile", $xslFile); $this->client->queueServiceActionCall("metadata_metadata", "updateFromXSL", "KalturaMetadata", $kparams, $kfiles); if ($this->client->isMultiRequest()) { return $this->client->getMultiRequestResult(); } $resultXml = $this->client->doQueue(); $resultXmlObject = new \SimpleXMLElement($resultXml); \Kaltura\Client\ParseUtils::checkIfError($resultXmlObject->result); $resultObject = \Kaltura\Client\ParseUtils::unmarshalObject($resultXmlObject->result, "KalturaMetadata"); $this->client->validateObjectType($resultObject, "\\Kaltura\\Client\\Plugin\\Metadata\\Type\\Metadata"); return $resultObject; }
/** * activate CategoryEntry when it is pending moderation * * * @return */ function reject($entryId, $categoryId) { $kparams = array(); $this->client->addParam($kparams, "entryId", $entryId); $this->client->addParam($kparams, "categoryId", $categoryId); $this->client->queueServiceActionCall("categoryentry", "reject", null, $kparams); if ($this->client->isMultiRequest()) { return $this->client->getMultiRequestResult(); } $resultXml = $this->client->doQueue(); $resultXmlObject = new \SimpleXMLElement($resultXml); \Kaltura\Client\ParseUtils::checkIfError($resultXmlObject->result); }
/** * Retries last submit action * * * @return \Kaltura\Client\Plugin\ContentDistribution\Type\EntryDistribution */ function retrySubmit($id) { $kparams = array(); $this->client->addParam($kparams, "id", $id); $this->client->queueServiceActionCall("contentdistribution_entrydistribution", "retrySubmit", "KalturaEntryDistribution", $kparams); if ($this->client->isMultiRequest()) { return $this->client->getMultiRequestResult(); } $resultXml = $this->client->doQueue(); $resultXmlObject = new \SimpleXMLElement($resultXml); \Kaltura\Client\ParseUtils::checkIfError($resultXmlObject->result); $resultObject = \Kaltura\Client\ParseUtils::unmarshalObject($resultXmlObject->result, "KalturaEntryDistribution"); $this->client->validateObjectType($resultObject, "\\Kaltura\\Client\\Plugin\\ContentDistribution\\Type\\EntryDistribution"); return $resultObject; }
/** * delete all local file syncs for this asset * * * @return */ function deleteLocalContent($assetId) { $kparams = array(); $this->client->addParam($kparams, "assetId", $assetId); $this->client->queueServiceActionCall("flavorasset", "deleteLocalContent", null, $kparams); if ($this->client->isMultiRequest()) { return $this->client->getMultiRequestResult(); } $resultXml = $this->client->doQueue(); $resultXmlObject = new \SimpleXMLElement($resultXml); \Kaltura\Client\ParseUtils::checkIfError($resultXmlObject->result); }