\FFMpegPushPushProgressListener

推流监听。 计算推流进度等度量信息

Class PushProgressListener

Summary

Methods
Properties
Constants
setPathfile()
__construct()
getFFProbe()
getPathfile()
getCurrentTime()
handle()
getPushInfo()
create()
No public properties found
No constants found
getPattern()
No protected properties found
N/A
parseProgress()
convertDuration()
getProgressInfo()
initialize()
$duration
$totalSize
$currentSize
$currentTime
$lastOutput
$ffprobe
$pathfile
$initialized
$rate
$percent
$remaining
N/A

Properties

$duration

$duration : integer

Type

integer

$totalSize

$totalSize : integer

Type

integer

$currentSize

$currentSize : integer

Type

integer

$currentTime

$currentTime : integer

Type

integer

$lastOutput

$lastOutput : double

Type

double

$pathfile

$pathfile : string

Type

string

$initialized

$initialized : Boolean

Type

Boolean

$rate

$rate : integer

rate in kb/s

Type

integer

$percent

$percent : integer

Percentage of transcoding progress (0 - 100)

Type

integer

$remaining

$remaining : integer

Time remaining (seconds)

Type

integer

Methods

setPathfile()

setPathfile(string  $pathfile) 

Parameters

string $pathfile

getPathfile()

getPathfile() : string

Returns

string

getCurrentTime()

getCurrentTime() : integer

Returns

integer

handle()

handle(string  $type, string  $data) 

Parameters

string $type

The data type, one of Process::ERR, Process::OUT constants

string $data

The output

create()

create(\FFMpegPush\Command\FFProbeCommand  $ffprobe, string  $pathfile = "") : static

Parameters

\FFMpegPush\Command\FFProbeCommand $ffprobe
string $pathfile

Returns

static

getPattern()

getPattern() : string

Returns

string

parseProgress()

parseProgress(  $progress) : array|null|void

Parameters

$progress

Returns

array|null|void

convertDuration()

convertDuration(string  $rawDuration) : \FFMpegPush\number

Parameters

string $rawDuration

in the format 00:00:00.00

Returns

\FFMpegPush\number

getProgressInfo()

getProgressInfo() : array

Returns

array

initialize()

initialize()