Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]


Managing the RTCP packets and reports

This section describes the RTCP related functions that RRtpSession provdes. In specific, how to send various types of RTCP packets, how to set the stream parameters and close the session.

[Top]


Sending various RTCP packets

To send an SR, an RR, or an SDES packet automatically call RRtpSession::SetRTCPAutoSend() and set to ETrue.

RTPSession:SetRTCPAutoSend(TBool ETrue); //set to ETrue 

Set the RTCP auto send time interval in microseconds by calling SetRtcpIntervel.

RTPSession:SetRtcpInterval(1000);// set auto send time interval to 1000 microseconds

If auto-sending is set to EFalse, you need to explicitly call SendRtcpPacketL() to send a packet.

//sends the CNAME of SDES item along with the packet 
RTPSession:SendRtcpPacketL(TRtpSendPacketType ERtcpPacketCNAME); 

Specify the SDES items as defined in TRtpSendPacketType that can be sent along with the packet such as cname, name, email, phone etc .

Call SendAppL to send an APP packet.

SendAPPL(const TDesC8& aName, const TDesC8& aAppData, TUint8 aSubType)

Call SetSDESL to set the SDES details such as CNAME, NAME, PHONE, EMAIL etc. for an SDES RTP packet. You need to set these details before the packet is sent. The CNAME should be unique for an RTP session otherwise the function leaves.

GetSDES() allows you to fetch the data associated with the specified SDES item.

You can set the data associated with the PRIV (Private Extensions) SDES item by calling SetPRIVL.

Note: The PRIV (Private Extensions) SDES item is not supported.

[Top]


Setting the stream parameters

SetRtpStreamParameters sets the following stream parameters:

SetRtpStreamParameters(1,100,3000);// set MinSequential, MaxMisorder & MaxDropout 

[Top]


Closing a session

Close() closes the RTP session. All the send and receive streams are disconnected after this call.

session.Close(); 
delete session;

[Top]


See also

Types of RTCP packets

Creating and Managing an RTP session