Symbian
Symbian Developer Library

SYMBIAN OS V9.4

Feedback

[Index] [Previous] [Next]


Creating and managing an RTP Session

This page describes how to create a new session with the socket server, open the session and set some of the session parameters.

To communicate with RTP, open a session with the socket server. You can open several sessions simultaneously.

An active scheduler should have been created and started before opening an RTP session.

[Top]


Opening a session

RRtpSession::OpenL() opens an RTP session and initialises it. This has four overloads, one of which initialises without RTCP.

OpenL(RSocketServ &aServer, TSockAddr &aLocalAddr, TSockAddr &aRemoteAddr, TInt aMaxRXSize, RConnection &aConnection, TInt aPriority=EPriorityNormal, const TDesC8 &aCNAME=KNullDesC8);

The following code shows how to create a new session, and set some of the session parameters.

// Construct a new session object 
RRtpSession session; 
session.OpenL(); 
// Set the RTP session Parameters 
session.setBandwidth(1000); // set session bandwidth in bps at the start up 
session.setPayloadSize(5);  //set payload size session.
session.setDefaultPayloadType(1000);    // set default payload type