PHP Class FFMpeg\Format\ProgressListener\AbstractProgressListener

Author: Robert Gruendler ([email protected])
Inheritance: extends Evenement\EventEmitter, implements Alchemy\BinaryDriver\Listeners\ListenerInterface
Afficher le fichier Open project: php-ffmpeg/php-ffmpeg

Méthodes publiques

Méthode Description
__construct ( FFMpeg\FFProbe $ffprobe, string $pathfile, integer $currentPass, integer $totalPass )
forwardedEvents ( )
getCurrentPass ( ) : integer
getCurrentTime ( ) : integer
getFFProbe ( ) : FFMpeg\FFProbe
getPathfile ( ) : string
getTotalPass ( ) : integer
handle ( $type, $data )

Méthodes protégées

Méthode Description
getPattern ( ) Get the regex pattern to match a ffmpeg stderr status line

Private Methods

Méthode Description
convertDuration ( string $rawDuration ) : number
getProgressInfo ( ) : array
initialize ( )
parseProgress ( string $progress ) : array

Method Details

__construct() public méthode

public __construct ( FFMpeg\FFProbe $ffprobe, string $pathfile, integer $currentPass, integer $totalPass )
$ffprobe FFMpeg\FFProbe
$pathfile string
$currentPass integer The cureent pass number
$totalPass integer The total number of passes

forwardedEvents() public méthode

public forwardedEvents ( )

getCurrentPass() public méthode

public getCurrentPass ( ) : integer
Résultat integer

getCurrentTime() public méthode

public getCurrentTime ( ) : integer
Résultat integer

getFFProbe() public méthode

public getFFProbe ( ) : FFMpeg\FFProbe
Résultat FFMpeg\FFProbe

getPathfile() public méthode

public getPathfile ( ) : string
Résultat string

getPattern() abstract protected méthode

Get the regex pattern to match a ffmpeg stderr status line
abstract protected getPattern ( )

getTotalPass() public méthode

public getTotalPass ( ) : integer
Résultat integer

handle() public méthode

public handle ( $type, $data )