Beispiel #1
0
        public RTMPChunkStream GetChunkStream(int chunkStreamID)
        {
            RTMPChunkStream cs = null;

            if (!chunkStreams.TryGetValue(chunkStreamID, out cs))
            {
                cs = new RTMPChunkStream(this);
                chunkStreams[chunkStreamID] = cs;
            }
            return(cs);
        }
Beispiel #2
0
        private RTMPMessage ReceiveNextMessage()
        {
            RTMPMessageHeader header = new RTMPMessageHeader(this, br);

            RTMPMessageBody body = new RTMPMessageBody(this, header, br);

            RTMPMessage newmessage = new RTMPMessage(this, header, body);

            RTMPChunkStream csinfo = GetChunkStream((int)header.ChunkStreamID);

            return(csinfo.AddFragment(newmessage));
        }