本文整理匯總了PHP中kJobsManager::addWebcamPrepareJob方法的典型用法代碼示例。如果您正苦於以下問題:PHP kJobsManager::addWebcamPrepareJob方法的具體用法?PHP kJobsManager::addWebcamPrepareJob怎麽用?PHP kJobsManager::addWebcamPrepareJob使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類kJobsManager
的用法示例。
在下文中一共展示了kJobsManager::addWebcamPrepareJob方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: addFromRecordedWebcamAction
/**
* Add new entry after the file was recored on the server and the token id exists
*
* @action addFromRecordedWebcam
* @param KalturaMediaEntry $mediaEntry Media entry metadata
* @param string $webcamTokenId Token id for the recored webcam file
* @return KalturaMediaEntry The new media entry
*
* @throws KalturaErrors::PROPERTY_VALIDATION_MIN_LENGTH
* @throws KalturaErrors::PROPERTY_VALIDATION_CANNOT_BE_NULL
* @throws KalturaErrors::RECORDED_WEBCAM_FILE_NOT_FOUND
*
* @deprecated use media.add instead
*/
function addFromRecordedWebcamAction(KalturaMediaEntry $mediaEntry, $webcamTokenId)
{
if ($mediaEntry->conversionQuality && !$mediaEntry->conversionProfileId) {
$mediaEntry->conversionProfileId = $mediaEntry->conversionQuality;
}
$mediaEntry = $this->addAction($mediaEntry);
$dbentry = entryPeer::retrieveByPK($mediaEntry->id);
$dbentry->setStatus(entryStatus::PRECONVERT);
$dbentry->save();
$mediaEntry->fromObject($dbentry);
kJobsManager::addWebcamPrepareJob($this->getPartnerId(), $mediaEntry, $webcamTokenId);
return $mediaEntry;
}