FLV::Body - Flash video file data structure
This is a subclass of FLV::Base.
parse($fileinst)
Takes a FLV::File instance and extracts the FLV body from the file stream. This method throws exceptions if the stream is not a valid FLV v1.0 or v1.1 file.
There is no return value.
serialize($filehandle)
Serializes the in-memory FLV body. If that representation is not
complete, this throws an exception via croak(). Returns a boolean
indicating whether writing to the file handle was successful.
get_info()
Returns a hash of FLV metadata. See File::Info for more details.
get_tags()
Returns an array of tag instances.
get_video_frames()
Returns the video tags (FLV::VideoTag instances) in the FLV stream.
get_video_keyframes()
Returns just the video tags which contain keyframe data.
get_audio_packets()
Returns the audio tags (FLV::AudioTag instances) in the FLV stream.
get_meta_tags()
Returns the meta tags (FLV::MetaTag instances) in the FLV stream.
last_start_time()
Returns the start timestamp of the last tag, in milliseconds.
get_meta($key);
These are convenience functions for interacting with an onMetadata
tag at time 0, which is a common convention in FLV files. If the zeroth
tag is not an the FLV::MetaTag manpage instance, one is created and prepended
to the tag list.
See also get_value and set_value in the FLV::MetaTag manpage.
merge_meta()
Consolidate zero or more meta tags into a single tag. If there are more than one tags and there are any duplicate keys, the first key takes precedence.