31 Jul 2012
I've found out that building an RTMP FLV-recording server involved 3 specifications: RTMP, AMF0, and FLV.
Right now I am at the half way of finishing RTMP, but I have found out that I have to finish AMF0 serializer/deserializer first.
AMF0 is a specification for encoding objects. It's similar to JSON. You could imagine that implementing a JSON encoder/decoder in C is not an easy task.
Man, this server is very very big.
Right now I borrow HashMap from Zed Shaw for storing an object with arbitrary keys. And I'm doing TDD right now, since there is no other easy way to verify if my code works or not.
This is my leap to the next level of programming. I have to finish this shit!