Beispiel #1
0
 public RTMPMessage(RTMPConnection connection, RTMPMessageHeader header, RTMPMessageBody body)
 {
     Connection           = connection;
     Header               = header;
     header.ParentMessage = this;
     Body = body;
     body.ParentMessage = this;
 }
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));
        }
Beispiel #3
0
 public RTMPMessage(RTMPConnection connection)
 {
     Connection = connection;
     Header     = new RTMPMessageHeader(this);
     Body       = new RTMPMessageBody(this);
 }