ReadUInt16() public method

public ReadUInt16 ( ) : int
return int
Exemplo n.º 1
0
 public PingResponseMessage(RTMPMessage x)
     : base(x)
 {
     using (var reader = new RTMPBinaryReader(new MemoryStream(x.Body))) {
         var type = (UserControlMessageType)reader.ReadUInt16();
         LocalTimestamp = reader.ReadUInt32();
     }
 }
Exemplo n.º 2
0
 public StreamIsRecordedMessage(RTMPMessage x)
     : base(x)
 {
     using (var reader = new RTMPBinaryReader(new MemoryStream(x.Body))) {
         var type = (UserControlMessageType)reader.ReadUInt16();
         TargetStreamId = reader.ReadUInt32();
     }
 }
Exemplo n.º 3
0
 public UserControlMessage(RTMPMessage x)
     : base(x)
 {
     using (var reader = new RTMPBinaryReader(new MemoryStream(x.Body))) {
         UserControlMessageType    = (UserControlMessageType)reader.ReadUInt16();
         UserControlMessagePayload = reader.ReadBytes(x.Body.Length - 2);
     }
 }
Exemplo n.º 4
0
 public SetBufferLengthMessage(RTMPMessage x)
     : base(x)
 {
     using (var reader = new RTMPBinaryReader(new MemoryStream(x.Body))) {
         var type = (UserControlMessageType)reader.ReadUInt16();
         TargetStreamId = reader.ReadUInt32();
         BufferLength   = TimeSpan.FromMilliseconds(reader.ReadUInt32());
     }
 }
Exemplo n.º 5
0
 public SetBufferLengthMessage(RTMPMessage x)
     : base(x)
 {
     using (var reader=new RTMPBinaryReader(new MemoryStream(x.Body))) {
       var type = (UserControlMessageType)reader.ReadUInt16();
       TargetStreamId = reader.ReadUInt32();
       BufferLength   = TimeSpan.FromMilliseconds(reader.ReadUInt32());
     }
 }
Exemplo n.º 6
0
 public PingResponseMessage(RTMPMessage x)
     : base(x)
 {
     using (var reader=new RTMPBinaryReader(new MemoryStream(x.Body))) {
       var type = (UserControlMessageType)reader.ReadUInt16();
       LocalTimestamp = reader.ReadUInt32();
     }
 }
Exemplo n.º 7
0
 public UserControlMessage(RTMPMessage x)
     : base(x)
 {
     using (var reader=new RTMPBinaryReader(new MemoryStream(x.Body))) {
     UserControlMessageType = (UserControlMessageType)reader.ReadUInt16();
     UserControlMessagePayload = reader.ReadBytes(x.Body.Length-2);
       }
 }
Exemplo n.º 8
0
 public StreamIsRecordedMessage(RTMPMessage x)
     : base(x)
 {
     using (var reader=new RTMPBinaryReader(new MemoryStream(x.Body))) {
       var type = (UserControlMessageType)reader.ReadUInt16();
       TargetStreamId = reader.ReadUInt32();
     }
 }