class FlvInspector extends Inspector (View source)

An inspector to process FLV (Flash Video) files.

Methods

inspect(Version $fv)

This method is called when a File\Version class refreshes its attributes.

array|null
getFlvMetadata(Version $fv)

No description

resource|null
getStream(Version $fv)

No description

array|null
readFlvHeader(resource $fp)

No description

array|null
readFlvTag(resource $fp, int $tagOffset)

No description

int
parseUI8(string $data)

No description

int
parseUI16(string $data)

No description

int
parseUI24(string $data)

No description

int
parseUI32(string $data)

No description

float
parseDouble(string $data)

IEEE 754.

array|null
extractScriptTagBody(string $data)

No description

mixed
extractScriptDataValue(string $data)

No description

int
extractScriptDataValue_UI16(string $data)

No description

float
extractScriptDataValue_Double(string $data)

No description

bool
extractScriptDataValue_Boolean(string $data)

No description

string
extractScriptDataValue_String(string $data)

No description

array
extractScriptDataValue_ECMAArray(string $data)

No description

Details

inspect(Version $fv)

This method is called when a File\Version class refreshes its attributes.

This can be used to update the File\Version attributes as well as its contents.

Parameters

Version $fv

See also

\Concrete\Core\File\Type\Inspector\Inspector::inspect()

array|null getFlvMetadata(Version $fv)

Parameters

Version $fv

Return Value

array|null

See also

http://www.adobe.com/devnet/f4v.html

private resource|null getStream(Version $fv)

Parameters

Version $fv

Return Value

resource|null

private array|null readFlvHeader(resource $fp)

Parameters

resource $fp

Return Value

array|null

Exceptions

UnexpectedValueException

private array|null readFlvTag(resource $fp, int $tagOffset)

Parameters

resource $fp
int $tagOffset

Return Value

array|null

Exceptions

UnexpectedValueException

private int parseUI8(string $data)

Parameters

string $data

Return Value

int

Exceptions

UnexpectedValueException

private int parseUI16(string $data)

Parameters

string $data

Return Value

int

Exceptions

UnexpectedValueException

private int parseUI24(string $data)

Parameters

string $data

Return Value

int

Exceptions

UnexpectedValueException

private int parseUI32(string $data)

Parameters

string $data

Return Value

int

Exceptions

UnexpectedValueException

private float parseDouble(string $data)

IEEE 754.

Parameters

string $data

Return Value

float

Exceptions

UnexpectedValueException

private array|null extractScriptTagBody(string $data)

Parameters

string $data

Return Value

array|null

Exceptions

UnexpectedValueException

private mixed extractScriptDataValue(string $data)

Parameters

string $data

Return Value

mixed

Exceptions

UnexpectedValueException

private int extractScriptDataValue_UI16(string $data)

Parameters

string $data

Return Value

int

Exceptions

UnexpectedValueException

private float extractScriptDataValue_Double(string $data)

Parameters

string $data

Return Value

float

Exceptions

UnexpectedValueException

private bool extractScriptDataValue_Boolean(string $data)

Parameters

string $data

Return Value

bool

Exceptions

UnexpectedValueException

private string extractScriptDataValue_String(string $data)

Parameters

string $data

Return Value

string

Exceptions

UnexpectedValueException

private array extractScriptDataValue_ECMAArray(string $data)

Parameters

string $data

Return Value

array

Exceptions

UnexpectedValueException