Class RtpPacket
An RTP packet.
Inheritance
Inherited Members
Namespace: FM.LiveSwitch
Assembly: FM.LiveSwitch.dll
Syntax
public class RtpPacket
Constructors
RtpPacket()
Initializes a new instance of the Rtp
Declaration
public RtpPacket()
RtpPacket(DataBuffer)
Initializes a new instance of the Rtp
Declaration
public RtpPacket(DataBuffer payload)
Parameters
Type | Name | Description |
---|---|---|
Data |
payload | The payload for the RTP packet. |
Properties
Buffer
Gets the buffer.
Declaration
public DataBuffer Buffer { get; }
Property Value
Type | Description |
---|---|
Data |
ContributingSourceCount
Gets the number of Contributing
Declaration
public int ContributingSourceCount { get; }
Property Value
Type | Description |
---|---|
System. |
ContributingSources
Gets or sets the contributing sources.
Declaration
public long[] ContributingSources { get; set; }
Property Value
Type | Description |
---|---|
System. |
ContributingSourcesLength
Gets the length of the Contributing
Declaration
public int ContributingSourcesLength { get; }
Property Value
Type | Description |
---|---|
System. |
ContributingSourcesOffset
Gets the offset of the Contributing
Declaration
public int ContributingSourcesOffset { get; }
Property Value
Type | Description |
---|---|
System. |
Extension
Gets a value indicating whether this Rtp
Declaration
public bool Extension { get; }
Property Value
Type | Description |
---|---|
System. |
FixedHeaderLength
Gets the length of the fixed header.
Declaration
public static int FixedHeaderLength { get; }
Property Value
Type | Description |
---|---|
System. |
Header
Gets the header.
Declaration
public DataBuffer Header { get; }
Property Value
Type | Description |
---|---|
Data |
HeaderExtension
Gets or sets the header extension.
Declaration
public DataBuffer HeaderExtension { get; set; }
Property Value
Type | Description |
---|---|
Data |
HeaderExtensionId
Gets or sets the header extension ID.
Declaration
public int HeaderExtensionId { get; set; }
Property Value
Type | Description |
---|---|
System. |
HeaderExtensionLength
Gets the length of the Header
Declaration
public int HeaderExtensionLength { get; }
Property Value
Type | Description |
---|---|
System. |
HeaderExtensionOffset
Gets the offset of the Header
Declaration
public int HeaderExtensionOffset { get; }
Property Value
Type | Description |
---|---|
System. |
HeaderLength
Gets the length of the fixed and variable headers.
Declaration
public int HeaderLength { get; }
Property Value
Type | Description |
---|---|
System. |
Marker
Gets or sets a value indicating whether this Rtp
Declaration
public bool Marker { get; set; }
Property Value
Type | Description |
---|---|
System. |
Padding
Gets or sets a value indicating whether this Rtp
Declaration
public bool Padding { get; set; }
Property Value
Type | Description |
---|---|
System. |
PaddingLength
Gets or sets the padding length.
Declaration
public int PaddingLength { get; }
Property Value
Type | Description |
---|---|
System. |
Payload
Gets or sets the packet payload.
Declaration
public DataBuffer Payload { get; set; }
Property Value
Type | Description |
---|---|
Data |
PayloadLength
Gets the length of the Payload.
Declaration
public int PayloadLength { get; }
Property Value
Type | Description |
---|---|
System. |
PayloadOffset
Gets the offset of the Payload.
Declaration
public int PayloadOffset { get; }
Property Value
Type | Description |
---|---|
System. |
PayloadType
Gets or sets the payload type.
Declaration
public int PayloadType { get; set; }
Property Value
Type | Description |
---|---|
System. |
SequenceNumber
Gets or sets the sequence number.
Declaration
public int SequenceNumber { get; set; }
Property Value
Type | Description |
---|---|
System. |
SynchronizationSource
Gets or sets the synchronization source.
Declaration
public long SynchronizationSource { get; set; }
Property Value
Type | Description |
---|---|
System. |
Timestamp
Gets or sets the timestamp.
Declaration
public long Timestamp { get; set; }
Property Value
Type | Description |
---|---|
System. |
VariableHeaderLength
Gets the length of the variable header.
Declaration
public int VariableHeaderLength { get; }
Property Value
Type | Description |
---|---|
System. |
Version
Gets or sets the version. This field identifies the version of RTP. The version defined by this specification is two(2). (The value 1 is used by the first draft version of RTP and the value 0 is used by the protocol initially implemented in the "vat" audio tool.)
Declaration
public int Version { get; set; }
Property Value
Type | Description |
---|---|
System. |
Methods
GetSequenceNumberDelta(Int32, Int32)
Retrieves the difference between two sequence numbers while accounting for overflow rollover.
Declaration
public static int GetSequenceNumberDelta(int sequenceNumber, int lastSequenceNumber)
Parameters
Type | Name | Description |
---|---|---|
System. |
sequenceNumber | The current sequence number. |
System. |
lastSequenceNumber | The last (previous) sequence number. |
Returns
Type | Description |
---|---|
System. |
The difference between the two sequence numbers. |
Wrap(DataBuffer)
Parses the specified buffer.
Declaration
public static RtpPacket Wrap(DataBuffer buffer)
Parameters
Type | Name | Description |
---|---|---|
Data |
buffer | The buffer. |
Returns
Type | Description |
---|---|
Rtp |
Rtp.Packet |