本文整理汇总了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;
}