View on
MetaCPAN is shutting down
For details read Perl NOC. After June 25th this page will redirect to
Chris Dolan > FLV-Info > FLV::AMFWriter



Annotate this POD


New  2
Open  1
View/Report Bugs
Module Version: 0.24   Source  


FLV::AMFWriter - Wrapper for the AMF::Perl serializer


See FLV::Info


This is a subclass of AMF::Perl::IO::Deserializer.

That class is optimized for Flash Remoting communications. We are instead just interested in the protocol for the data payload of those messages, since that's all that FLV carries.

So, this class is a hack. As of this writing AMF::Perl was at v0.15, which lacked support for hashes. So, we hack that in. Hopefully we did it in a future-friendly way...


Creates a minimal AMF::Perl::IO::Serializer instance.


Returns a byte string of serialized data


Serializes a hashref.

This is a workaround for versions of AMF::Perl which did not handle hashes (namely v0.15 and earlier). This method is only installed if a method of the same name does not exist in the superclass.

This should be removed when a newer release of AMF::Perl is available.


This is a minimal override of writeData() in the superclass to add support for mixed arrays (aka hashes).

As above, it is only installed if AMF::Perl::IO::Serializer lacks a writeMixedArray() method.


See FLV::Info

syntax highlighting: