You are here

public function video_conversion::run_queue in Video 7

Same name and namespace in other branches
  1. 6.4 includes/conversion.inc \video_conversion::run_queue()

Our main function to call when converting queued up jobs.

File

includes/conversion.inc, line 21

Class

video_conversion

Code

public function run_queue() {
  if ($videos = $this
    ->load_job_queue()) {
    foreach ($videos as $video) {
      $this
        ->process($video);
    }

    //clear cache once completed the conversion to update the file paths
    cache_clear_all();
  }
}