PHP Classes
elePHPant
Icontem

File: src/PHPVideoToolkit/FfmpegProcessException.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Oliver Lillie  >  PHP Video Toolkit  >  src/PHPVideoToolkit/FfmpegProcessException.php  >  Download  
File: src/PHPVideoToolkit/FfmpegProcessException.php
Role: Class source
Content type: text/plain
Description: Class source
Class: PHP Video Toolkit
Manipulate and convert videos with ffmpeg program
Author: By
Last change: updated copy right years and a incorrect version number
updated version number in class files
Date: 10 months ago
Size: 1,317 bytes
 

Contents

Class file image Download
<?php
   
   
/**
     * This file is part of the PHP Video Toolkit v2 package.
     *
     * @author Oliver Lillie (aka buggedcom) <publicmail@buggedcom.co.uk>
     * @license Dual licensed under MIT and GPLv2
     * @copyright Copyright (c) 2008-2014 Oliver Lillie <http://www.buggedcom.co.uk>
     * @package PHPVideoToolkit V2
     * @version 2.1.1
     * @uses ffmpeg http://ffmpeg.sourceforge.net/
     */
    
    
namespace PHPVideoToolkit;
    
   
/**
     * This class provides generic data parsing for the output from FFmpeg.
     *
     * @access public
     * @author Oliver Lillie
     * @author Jorrit Schippers
     * @package default
     */
   
class FfmpegProcessException extends Exception
   
{
        protected
$process;
        protected
$exec;
       
        public function
__construct($message = null, ExceBuffer $exec=null, FfmpegProcess $process=null, $code = 0, Exception $previous=null)
        {
           
parent::__construct($message, $code, $previous);
           
           
$this->process = $process;
           
$this->exec = $exec;
        }
       
        final public function
getFfmpegProcess()
        {
            return
$this->process;
        }
       
        final public function &
getExecBuffer()
        {
            return
$this->exec;
        }
    }