Symbian
Symbian OS Library

SYMBIAN OS V9.3

[Index] [Spacer] [Previous] [Next]



Creating the receive stream

This page describes how to create a receive source.

The RRtpReceiveSource class represents the stream of data on a single SSRC (synchronised source) and delivers the RTP packets and RTCP information in the order they arrive.

RRtpSession allows you to create a new receive stream. NewReceiveSourceLC() and NewReceiveSourceL() create a new receive stream and return a handle to an RRtpReceiveSource.


Receiving the packet

RRtpReceivePacket is derived from RRtpPacket and provides a handle to a received RTP packet. To access the packet information, use the functions listed in Preparing the packet.

RRtpReceiveSource provides the following functionality:

IsOpen returns ETrue if the stream is open.

GetByeReason: Retrieves the reason for terminating the session

GetLastApp: Retrieves the parameters from the last APP packet. You need to specify the application name, application data and sub-type of the APP packet.

Packet: Gets the packet that has just arrived, or a closed packet if there isn't one.

GetSDES: Gets the data associated with the SDES (Source Description) item such as CNAME, NAME etc.

SSRC: Gets the source of stream of the RTP packets.

Close: Closes the receive stream and releases all its resources.

To register for events from a stream, refer to the section Registering for and handling events.

[Top]


See also

Creating and Managing an RTP session