StringProvider
extends AbstractProvider
in package
StringOutputProvider ffmpeg provider implementation.
Table of Contents
- $binary : string
- Binary that returns info about movie file
- $EX_CODE_FILE_NOT_FOUND : mixed
- $movieFile : string
- Movie File path
- $output : mixed
- $persistent : bool
- Persistent functionality on/off
- $persistentBuffer : mixed
- __construct() : mixed
- This class is handy for testing purposes.
- __serialize() : mixed
- __unserialize() : mixed
- getOutput() : string
- Getting parsable output from ffmpeg binary.
- setMovieFile() : mixed
- Setting movie file path
- setOutput() : mixed
- Setting parsable output.
Properties
$binary
Binary that returns info about movie file
protected
string
$binary
$EX_CODE_FILE_NOT_FOUND
protected
static mixed
$EX_CODE_FILE_NOT_FOUND
= 334561
$movieFile
Movie File path
protected
string
$movieFile
$output
protected
mixed
$output
$persistent
Persistent functionality on/off
protected
bool
$persistent
$persistentBuffer
protected
static mixed
$persistentBuffer
= array()
Methods
__construct()
This class is handy for testing purposes.
public
__construct([string $ffmpegBinary = 'ffmpeg' ][, bool $persistent = false ]) : mixed
Parameters
- $ffmpegBinary : string = 'ffmpeg'
-
Path to ffmpeg executable.
- $persistent : bool = false
-
Persistent functionality on/off.
Return values
mixed —__serialize()
public
__serialize() : mixed
Return values
mixed —__unserialize()
public
__unserialize(mixed $serialized) : mixed
Parameters
- $serialized : mixed
Return values
mixed —getOutput()
Getting parsable output from ffmpeg binary.
public
getOutput() : string
Return values
string —setMovieFile()
Setting movie file path
public
setMovieFile(string $movieFile) : mixed
Parameters
- $movieFile : string
Return values
mixed —setOutput()
Setting parsable output.
public
setOutput(string $output) : mixed
Parameters
- $output : string