You are here

public function Transcoder::runQueue in Video 7.2

Processes up to 'video_ffmpeg_instances' jobs in the current thread.

See also

video_jobs::loadQueue()

File

includes/Transcoder.inc, line 80
Class file used to wrap the transcoder helper functions.

Class

Transcoder
@file Class file used to wrap the transcoder helper functions.

Code

public function runQueue() {
  if ($this
    ->hasTranscoder() && ($videos = video_jobs::loadQueue())) {
    foreach ($videos as $video) {
      $this
        ->executeConversion($video);
    }
  }
}