[rtmpdump] [PATCH] Callback API
antti.ajanki at iki.fi
Sun Jan 8 17:53:46 CET 2012
The attached patch adds a callback interface for overriding (parts of)
the RTMP packet processing. This is based on Chris Larsen's and Adam
Malcontenti-Wilson's patches from last Fall.
This is useful for implementing custom CDN authentication. My other
motivation is implementing remote procedure calls over RTMP in the open
source Flash player Lightspark, where a callback could be used to
capture incoming RPC packets and execute the corresponding functions on
Lightspark's virtual machine.
The patch actually adds different callbacks on various levels of
generality. RTMP_CALLBACK_PACKET callbacks can be used to completely
override RTMP packet handling. Then there are more restricted callbacks,
which only apply to some particular types of packets but, on the other
hand, avoid much of the RTMP body parsing because that can be left to
librtmp. See the comments in rtmp.h for details on different types of
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 10441 bytes
Desc: not available
More information about the rtmpdump