Crtmp Server 几个关键流程
最近在阅读Crtmp Sever 源码,有些关键流程记录下来,以备以后查阅。假设rtmp播放地址是"rtmp://127.0.0.1/live/mystream live=1"
1. 获取rtmp://127.0.0.1/live流程:
bool TCPProtocol::SignalInputData(int32_t recvAmount) bool BaseRTMPProtocol::SignalInputData(IOBuffer &buffer) bool BaseRTMPProtocol::ProcessBytes(IOBuffer &buffer) BaseRTMPAppProtocolHandler::InboundMessageAvailable bool RTMPProtocolSerializer::Deserialize bool RTMPProtocolSerializer::DeserializeInvoke bool AMF0Serializer::Read(IOBuffer &buffer, Variant &variant) RTMPProtocolSerializer::DeserializeInvoke bool AMF0Serializer::Read(IOBuffer &buffer, Variant &variant) bool AMF0Serializer::ReadShortString