#include <mw/rtp.h>
class RRtpPacket |
Protected Attributes | |
---|---|
TRtpPacket * | iPtr |
Public Member Functions | |
---|---|
RRtpPacket() | |
IMPORT_C RRtpCSRCs | CSRCs() |
IMPORT_C void | Close() |
IMPORT_C RRtpHeaderExtension | Extension() |
IMPORT_C TBool | ExtensionPresent() |
IMPORT_C TUint | Flags() |
TBool | IsOpen() |
IMPORT_C TBool | Marker() |
IMPORT_C TPtrC8 | Payload() |
IMPORT_C TUint | PayloadType() |
IMPORT_C TUint | SSRC() |
IMPORT_C TUint | SequenceNumber() |
IMPORT_C TUint | Timestamp() |
TBool | operator!=(RRtpPacket) |
TBool | operator==(RRtpPacket) |
A handle to an RTP packet.
The packet is accessed through the interface provided by this handle.
IMPORT_C RRtpCSRCs | CSRCs | ( | ) | const |
Gets a handle to a list of CSRCs (contributing sources).
If there are no CSRCs, then the list is empty.
Returns: A handle encapsulating the list of CSRCs. Callers can access the list through this returned handle.
IMPORT_C RRtpHeaderExtension | Extension | ( | ) | const |
Gets the packet's header extension.
See also: RRtpPacket::ExtensionPresent()
Returns: The header extension.
IMPORT_C TBool | ExtensionPresent | ( | ) | const |
Tests whether the packet has a header extension.
Returns: True, if a header extension is present, false otherwise.
IMPORT_C TUint | Flags | ( | ) | const |
Gets the first 32 bits of the packet header.
This may be useful for profiles that do things such as using a different number of marker bits.
Flags returned in this format.... V is most significant bit in flags 0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ |V=2|P|X| CC |M| PT | sequence number | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Returns: The first 32 bits of the header as an integer.
TBool | IsOpen | ( | ) | const [inline] |
Tests whether this packet object is open.
Returns: ETrue, if the packet is open, false otherwise.
IMPORT_C TBool | Marker | ( | ) | const |
Tests whether the marker bit is set in the packet header.
Returns: True, if the marker bit is set, false otherwise.
IMPORT_C TPtrC8 | Payload | ( | ) | const |
Gets a pointer descriptor representing the packet's payload.
Returns: The pointer descriptor representing the payload.
IMPORT_C TUint | PayloadType | ( | ) | const |
Gets the type of payload carried by the packet.
Returns: The 7-bit payload type.
IMPORT_C TUint | SSRC | ( | ) | const |
Gets the SSRC, the 32-bit numeric synchronisation source identifier.
Returns: The 32-bit SSRC identifier.
IMPORT_C TUint | SequenceNumber | ( | ) | const |
Gets the packet's sequence number.
Returns: The packet's sequence number.
IMPORT_C TUint | Timestamp | ( | ) | const |
Gets the packet's timestamp.
This is a monotonic linear time representation, but the resolution and zero point are profile dependent.
Returns: The packet's timestamp.
TBool | operator!= | ( | RRtpPacket | aThat | ) | const [inline] |
Tests whether this packet handle represents a different packet to the one represented by the specified handle.
Parameter | Description |
---|---|
aThat | The handle of the packet to be compared. |
Returns: ETrue, if the represented packets are different, false otherwise.
TBool | operator== | ( | RRtpPacket | aThat | ) | const [inline] |
Tests whether this packet handle represents the same packet as the one represented by the specified handle.
Parameter | Description |
---|---|
aThat | The handle of the packet to be compared. |
Returns: ETrue, if the represented packets are the same, false otherwise.