|
||
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.
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.
SetRtpStreamParameters
sets the following stream
parameters:
maximum number of sequential packets that must be received for a good stream.
maximum number of dropped packets to be considered a dropout.
maximum number of packets by which a packet can be delayed to be considered as dropped.
SetRtpStreamParameters(1,100,3000);// set MinSequential, MaxMisorder & MaxDropout
Close()
closes the RTP session. All the send and receive
streams are disconnected after this call.
session.Close();
delete session;