FLV::Tag - Flash video file data structure
See FLV::Info
This is a subclass of FLV::Base.
Takes a FLV::File instance and extracts an FLV tag from the file stream. This method then multiplexes that tag into one of the subtypes: video, audio or meta. This method throws exceptions if the stream is not a valid FLV v1.0 or v1.1 file.
At the end, this method stores the subtag instance, which can be retrieved with get_payload().
There is no return value.
An option of record_positions = 1> causes the byte offset of the tag to be stored in the instance. This is intended for testing and/or debugging, so there is no public accessor for that property.
record_positions =
Returns the subtag instance found by parse(). This will be instance of FLV::VideoTag, FLV::AudioTag or FLV::MetaTag.
Perform a generic part of the clone behavior for the tag subtypes.
Serializes the specified video, audio or meta tag. If that representation is not complete, this throws an exception via croak(). Returns a boolean indicating whether writing to the file handle was successful.
To install FLV::Info, copy and paste the appropriate command in to your terminal.
cpanm
cpanm FLV::Info
CPAN shell
perl -MCPAN -e shell install FLV::Info
For more information on module installation, please visit the detailed CPAN module installation guide.