Exemplo n.º 1
0
/**
 * Save file info for video conversion
 * 
 * @param string  $file
 * @param array   $video
 * @param integer $defined_access_id
 * @param array   $izapvideo
 * 
 * @return boolean
 * 
 * @version 5.0
 */
function izap_save_fileinfo_for_converting_izap_videos($file, $video, $defined_access_id = 2, $izapvideo)
{
    // this will not let save any thing if there is no file to convert
    if (!file_exists($file) || !$video) {
        return false;
    }
    $queue = new izapQueue();
    $queue->put($video, $file, $defined_access_id, $izapvideo->getURL($izapvideo->getOwnerEntity(), GLOBAL_IZAP_VIDEOS_PAGEHANDLER));
    //set state processing for video
    $izapvideo->converted = 'in_processing';
    //run queue
    izap_trigger_video_queue();
}
Exemplo n.º 2
0
/**
 * This function saves the entry for futher processing
 * @param string $file main filepath
 * @param int $videoId video guid
 * @param int $ownerGuid owner guid
 * @param int $accessId access id to be used after completion of encoding of video
 */
function izapSaveFileInfoForConverting_izap_videos($file, $video, $defined_access_id = 2)
{
    // This will not let save anything if there is no file to convert
    if (!file_exists($file) || !$video) {
        return false;
    }
    $queue = new izapQueue();
    $queue->put($video, $file, $defined_access_id);
}