Properties

$process

$process : 

底层执行

Type

— Process

$pathfile

$pathfile : string

文件(视频)

Type

string

$duration

$duration : double

视频时长(s)

Type

double

$totalSize

$totalSize : double

视频文件大小(Kb)

Type

double

$currentSize

$currentSize : integer

Type

integer

$currentTime

$currentTime : integer

Type

integer

$rate

$rate : integer

推流速率(Kb/s)

Type

integer

$percent

$percent : integer

推流进度百分比

Type

integer

$remaining

$remaining : integer

按照当前速率,预计还需要多少秒

Type

integer

Methods

setProcess()

setProcess(mixed  $process) : \FFMpegPush\PushInfo

Parameters

mixed $process

Returns

\FFMpegPush\PushInfo

isSuccessful()

isSuccessful() 

getOutput()

getOutput() : mixed

Returns

mixed

getErrOutput()

getErrOutput() : mixed

Returns

mixed

getExitCode()

getExitCode() : mixed

Returns

mixed

getCommandLine()

getCommandLine() 

getTotalSize()

getTotalSize() : integer

Returns

integer

setTotalSize()

setTotalSize(integer  $totalSize) : \FFMpegPush\PushInfo

Parameters

integer $totalSize

Returns

\FFMpegPush\PushInfo

getCurrentSize()

getCurrentSize() : integer

Returns

integer

setCurrentSize()

setCurrentSize(integer  $currentSize) : $this

Parameters

integer $currentSize

Returns

$this

getCurrentTime()

getCurrentTime() : integer

Returns

integer

setCurrentTime()

setCurrentTime(integer  $currentTime) : \FFMpegPush\PushInfo

Parameters

integer $currentTime

Returns

\FFMpegPush\PushInfo

getPathfile()

getPathfile() : string

Returns

string

setPathfile()

setPathfile(string  $pathfile) : \FFMpegPush\PushInfo

Parameters

string $pathfile

Returns

\FFMpegPush\PushInfo

getDuration()

getDuration() : integer

Returns

integer

setDuration()

setDuration(integer  $duration) : \FFMpegPush\PushInfo

Parameters

integer $duration

Returns

\FFMpegPush\PushInfo

getRate()

getRate() : integer

Returns

integer

setRate()

setRate(integer  $rate) : \FFMpegPush\PushInfo

Parameters

integer $rate

Returns

\FFMpegPush\PushInfo

getPercent()

getPercent() : integer

Returns

integer

setPercent()

setPercent(integer  $percent) : \FFMpegPush\PushInfo

Parameters

integer $percent

Returns

\FFMpegPush\PushInfo

getRemaining()

getRemaining() : integer

Returns

integer

setRemaining()

setRemaining(integer  $remaining) : \FFMpegPush\PushInfo

Parameters

integer $remaining

Returns

\FFMpegPush\PushInfo

create()

create()