Constants

TimeOut

TimeOut = 86400

one day

Properties

$name

$name : 

Type

$process

$process : 

Type

— Process

$config

$config : 

Type

— Configuration

$logger

$logger : 

Type

— LoggerInterface

$binary

$binary : 

Type

$listeners

$listeners : 

Type

— ListenerInterface[]

Methods

__construct()

__construct(array  $config = array(),   $logger = null) 

Command constructor.

Parameters

array $config

array( "binarys"=>array(), // 可执行命令,数组类型。只有一个有效,优先级和数组顺序一致 "timeout"=>"", // 默认一天。如果非法格式,也就是非数字类型,都统一采用默认值 )

$logger

Throws

\FFMpegPush\Exception\ConfigException
\FFMpegPush\Exception\ExecutableNotFoundException

getProcess()

getProcess() : \Symfony\Component\Process\Process

Returns

\Symfony\Component\Process\Process

command()

command(  $command) : string

Parameters

$command

Returns

string

stop()

stop() 

停止执行

getExitCode()

getExitCode() 

getCommandLine()

getCommandLine() 

getExitCodeText()

getExitCodeText() 

getErrorOutput()

getErrorOutput() 

getOutput()

getOutput() 

isSuccessful()

isSuccessful() 

clear()

clear() 

initProcess()

initProcess(  $command) : \Symfony\Component\Process\Process

Parameters

$command

Returns

\Symfony\Component\Process\Process

buildCallback()

buildCallback(  $listeners) : \Closure

Parameters

$listeners

Returns

\Closure