Click or drag to resize
RtpPacket Class
Represents an RTP Packet, implemented according to RFC 3550.
Inheritance Hierarchy
SystemObject
  StreamCoders.RtpRtpPacket
    StreamCoders.RtpRtp4629
    StreamCoders.RtpRtpPacketJpeg
    StreamCoders.RtpRtpPacketToneEvent

Namespace: StreamCoders.Rtp
Assembly: MediaBase (in MediaBase.dll) Version: 2.0.5.0 (2.0.5.0)
Syntax
[SerializableAttribute]
public class RtpPacket : ICloneable

The RtpPacket type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyCreationTime
Gets the CreationTime property.
Public propertyDataPointer
A pointer to the payload data that will be attached to the RTP packet.
Public propertyDataSize
The size of the payload attached to the RTP packet.
Public propertyEndBitOffset
Gets or sets the Offset of the last valid bit.
Public propertyHeaderExtension
Gets or sets optional header extension to transport additional profile defined information.
Public propertyHeaderSize
The RTP Header Length in bytes.
Public propertyIsValidPacket
Indicates whether this packet is valid.
This is especially useful when the parsing of data is done through the constructor of the object.
Public propertyMarker
This represents the Marker bit. This is mostly used for framing.
Public propertyPayloadType
The PayloadType of the packet. (http://www.iana.org/assignments/rtp-parameters)
Public propertyPresentationTime
When used together with PlayoutBuffer this will contain the presentation time of the packet.
Public propertySequenceNumber
The sequence number increments by one for each RTP data packet sent, and may be used by the receiver to detect packet loss and to restore packet sequence. The initial value of the sequence number SHOULD be random (unpredictable) to make known-plaintext attacks on encryption more difficult. The sequence number is originally 16-bit signed. An extended Sequence number scheme CAN be used to avoid frequent wrap around (See class ExtendedSequenceNumber).
Public propertySsrc
The Ssrc field identifies the synchronization source. It is chosen randomly.
Public propertyStartBitOffset
Gets or sets the Offset of the first valid bit.
Public propertyTimestamp
The timestamp reflects the sampling instant of the first octet in the RTP data packet. The sampling instant MUST be derived from a clock that increments monotonically and linearly in time to allow synchronization and jitter calculations. The resolution of the clock must be sufficient for the desired synchronization accuracy and for measuring packet arrival jitter (one tick per video frame is typically not sufficient). The clock frequency is dependent on the format of data carried as payload and is specified statically in the profile or payload format specification that defines the format, or may be specified dynamically for payload formats defined through non-RTP means. If RTP packets are generated periodically, the nominal sampling instant as determined from the sampling clock is to be used, not a reading of the system clock. As an example, for fixed-rate audio the timestamp clock would likely increment by one for each sampling period.
Public propertyVersion
Contains the Version Number of the RTP packet. The value should always be 2.
Top
Methods
  NameDescription
Public methodClone
Deep clones RtpPacket object.
Public methodParseHeader
Parses the header of a packet.
Public methodParseHeader(Byte)
Parses the header of a packet.
Public methodToByteArray
The function compiles the RTP packet header and payload into a array of type Byte.
Public methodToByteArray(Byte, UInt32)
The function compiles the RTP packet header and payload into a array of type Byte.
Public methodToOffsetBuffer
The function compiles the RTP packet header and payload into a array of type Byte.
Public methodToString
Creates a String that contains the values of all fields in this RTP packet.
(Overrides ObjectToString.)
Top
Fields
  NameDescription
Public fieldRelativePresentationTime
Time of the relative presentation.
Top
Extension Methods
  NameDescription
Public Extension MethodCopyOverloaded.
Creates a copy of the object.
(Defined by ObjectExtensions.)
Public Extension MethodCopy(Object)Overloaded.
Creates a deep copy of the object using the supplied object as a target for the copy operation.
(Defined by ObjectExtensions.)
Top
See Also

Reference

SystemICloneable