CRtpManager Class Reference

class CRtpManager : public CBase

Container of all rtp sessions.

RtpService.dll

Inherits from

Public Member Functions
~CRtpManager ()
void CancelSend ( TRtpId )
void CancelStart ()
void Close (void)
void CloseSession ( TRtpId )
void CloseStream ( TRtpId )
TRtpId CreateReceiveStreamL ( TRtpId , const TRcvStreamParams &)
TRtpId CreateSessionL (const TCreateSessionParams &, TUint &, TBool , const TRtcpParams *)
TRtpId CreateSessionL (const TCreateSessionParams &, TUint &, TBool , const TRtcpParams *, CSRTPSession &)
TRtpId CreateStreamL ( TRtpId , const TCreateStreamType , TRtpPayloadType , TRtpSSRC &)
TRtpId CreateTransmitStreamExtL ( TRtpId , const TTranStreamParams &, const TRtpSSRC )
TRtpId CreateTransmitStreamL ( TRtpId , const TTranStreamParams &, TRtpSSRC &)
TInetAddr & GetLocalIPAddressL ()
RSocket * GetRtcpSocket ( TRtpId )
RSocket * GetRtpSocket ( TRtpId )
TUint32 GetSamplingRate ( TUint8 )
TRtpId GetSessionId ( TRtpId )
TInt GetStreamStatistics ( TRtpId , TRtpPeerStat &)
TInt IsRtcpSendingSuspended ( TRtpId , TBool &)
CRtpManager * NewL ( MRtpErrNotify &)
TInt OpenL (const TRtpSdesParams &, const TDesC *, RSocketServ *, RConnection *)
TInt RegisterRtcpObserver ( TRtpId , MRtcpObserver &)
TInt RegisterRtpObserver ( TRtpId , MRtpObserver &)
void SendDataL ( TRtpId , TBool , const TDesC8 &, TRequestStatus &)
TInt SendRtcpAppPacketL ( TRtpId , const TRtcpApp &)
TInt SendRtcpByePacketL ( TRtpId , const TDesC8 &)
TInt SendRtcpRrPacketL ( TRtpId )
TInt SendRtcpSrPacketL ( TRtpId )
TInt SendRtpPacket ( TRtpId , const TRtpSendHeader &, const TDesC8 &)
TInt SendRtpPacket ( TRtpId , const TRtpSendHeader &, const TDesC8 &, TRequestStatus &)
TInt SendRtpPacket ( TRtpId , TRtpSequence , const TRtpSendHeader &, const TDesC8 &, TRequestStatus &)
void SetLocalSdes (const TRtpSdesParams &)
TInt SetNonRTPDataObserver ( TRtpId , MNonRTPDataObserver *)
TInt SetRemoteAddress ( TRtpId , TInetAddr &)
TInt SetRemoteRtcpAddress ( TRtpId , TInetAddr &)
TInt SetRtcpParameters ( TRtpId , const TRtcpParams &)
TInt SetSamplingRate ( TUint8 , TUint32 )
TInt StartConnection ( TInt )
TInt StartConnection ( TRequestStatus &, TInt )
TInt StartSession ( TRtpId )
TInt SuspendRtcpSending ( TRtpId , TBool )
void UnregisterRtcpObserver ( TRtpId )
void UnregisterRtpObserver ( TRtpId )
Private Member Functions
CRtpManager ( MRtpErrNotify &)
TInt AddRtpObject ( TArrayStore )
TInt AddStreamToSession ( TRtpId , TRtpId )
TRtpId AssignUniqueID ()
void CheckSdesCName ()
void ConstructL (void)
TInt FindRtpObject (const TRtpId , TUint &)
TInt GetIapId ( TUint32 &)
CRtpSession * GetSession ( TRtpId )
TInt PrepareConnection ( TCommDbConnPref &, TInt )
void RemoveRtpAllObjects ()
TInt RemoveRtpObject (const TRtpId , const TObjectType )
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
Public Member Enumerations
enum TCreateStreamType { ECreateRecvStream  = 0, ECreateTranStream , ECreateTranStreamExt }
Private Attributes
RConnection iConn
RConnection * iConnPtr
TBool iConnected
CRtpSDES * iDefaultSdes
TBool iEnableRtcp
MRtpErrNotify & iErrNotify
TInt iIapId
RLibrary iLibrary
TInetAddr iLocalAddr
TRtpId iNumOfObjects
TCommDbConnPref iPrefs
TUint32 iProfileRTPTimeRates
CArrayFixFlat < TArrayStore > * iSessionArray
RSocketServ iSocketServ
RSocketServ * iSocketServPtr
TBool iStandardRtp

Constructor & Destructor Documentation

CRtpManager(MRtpErrNotify &)

CRtpManager ( MRtpErrNotify & aErrNotify ) [private]

Parameters

MRtpErrNotify & aErrNotify

~CRtpManager()

~CRtpManager ( )

Member Functions Documentation

AddRtpObject(TArrayStore)

TInt AddRtpObject ( TArrayStore aArrayID ) [private]

Parameters

TArrayStore aArrayID

AddStreamToSession(TRtpId, TRtpId)

TInt AddStreamToSession ( TRtpId aSessionId,
TRtpId aStreamId
) [private]

Parameters

TRtpId aSessionId
TRtpId aStreamId

AssignUniqueID()

TRtpId AssignUniqueID ( ) [private]

CancelSend(TRtpId)

void CancelSend ( TRtpId aSessionId )

Parameters

TRtpId aSessionId

CancelStart()

void CancelStart ( )

Cancels asynchoronous start of connection Any open requests will be completed with KErrCancel.

CheckSdesCName()

void CheckSdesCName ( ) [private]

Close(void)

void Close ( void )

Parameters

void

CloseSession(TRtpId)

void CloseSession ( TRtpId aSessionId )

Parameters

TRtpId aSessionId

CloseStream(TRtpId)

void CloseStream ( TRtpId aStreamId )

Parameters

TRtpId aStreamId

ConstructL(void)

void ConstructL ( void ) [private]

Parameters

void

CreateReceiveStreamL(TRtpId, const TRcvStreamParams &)

TRtpId CreateReceiveStreamL ( TRtpId aSessionId,
const TRcvStreamParams & aParams
)

Parameters

TRtpId aSessionId
const TRcvStreamParams & aParams

CreateSessionL(const TCreateSessionParams &, TUint &, TBool, const TRtcpParams *)

TRtpId CreateSessionL ( const TCreateSessionParams & aSessionParams,
TUint & aPort,
TBool aEnableRtcp,
const TRtcpParams * aRtcpParams
)

Parameters

const TCreateSessionParams & aSessionParams
TUint & aPort
TBool aEnableRtcp
const TRtcpParams * aRtcpParams

CreateSessionL(const TCreateSessionParams &, TUint &, TBool, const TRtcpParams *, CSRTPSession &)

TRtpId CreateSessionL ( const TCreateSessionParams & aSessionParams,
TUint & aPort,
TBool aEnableRtcp,
const TRtcpParams * aRtcpParams,
CSRTPSession & aSRTPSession
)

Parameters

const TCreateSessionParams & aSessionParams
TUint & aPort
TBool aEnableRtcp
const TRtcpParams * aRtcpParams
CSRTPSession & aSRTPSession

CreateStreamL(TRtpId, const TCreateStreamType, TRtpPayloadType, TRtpSSRC &)

TRtpId CreateStreamL ( TRtpId aSessionId,
const TCreateStreamType aStreamType,
TRtpPayloadType aPayloadType,
TRtpSSRC & aSSRC
)

Does the actual work of creating a stream. Used by the other stream creation methods.

Parameters

TRtpId aSessionId
const TCreateStreamType aStreamType
TRtpPayloadType aPayloadType
TRtpSSRC & aSSRC

CreateTransmitStreamExtL(TRtpId, const TTranStreamParams &, const TRtpSSRC)

TRtpId CreateTransmitStreamExtL ( TRtpId aSessionId,
const TTranStreamParams & aParams,
const TRtpSSRC aSSRC
)

Parameters

TRtpId aSessionId
const TTranStreamParams & aParams
const TRtpSSRC aSSRC

CreateTransmitStreamL(TRtpId, const TTranStreamParams &, TRtpSSRC &)

TRtpId CreateTransmitStreamL ( TRtpId aSessionId,
const TTranStreamParams & aParams,
TRtpSSRC & aSSRC
)

Parameters

TRtpId aSessionId
const TTranStreamParams & aParams
TRtpSSRC & aSSRC

FindRtpObject(const TRtpId, TUint &)

TInt FindRtpObject ( const TRtpId aMagicKey,
TUint & aSessionAddress
) [private]

Parameters

const TRtpId aMagicKey
TUint & aSessionAddress

GetIapId(TUint32 &)

TInt GetIapId ( TUint32 & aIapId ) [private]

Parameters

TUint32 & aIapId

GetLocalIPAddressL()

TInetAddr & GetLocalIPAddressL ( )

GetRtcpSocket(TRtpId)

RSocket * GetRtcpSocket ( TRtpId aSessionId )

Parameters

TRtpId aSessionId

GetRtpSocket(TRtpId)

RSocket * GetRtpSocket ( TRtpId aSessionId )

Parameters

TRtpId aSessionId

GetSamplingRate(TUint8)

TUint32 GetSamplingRate ( TUint8 aPayloadType )

Parameters

TUint8 aPayloadType

GetSession(TRtpId)

CRtpSession * GetSession ( TRtpId aSessionId ) [private]

Parameters

TRtpId aSessionId

GetSessionId(TRtpId)

TRtpId GetSessionId ( TRtpId aStreamId )

Parameters

TRtpId aStreamId

GetStreamStatistics(TRtpId, TRtpPeerStat &)

TInt GetStreamStatistics ( TRtpId aStreamId,
TRtpPeerStat & aStat
)

Parameters

TRtpId aStreamId
TRtpPeerStat & aStat

IsRtcpSendingSuspended(TRtpId, TBool &)

TInt IsRtcpSendingSuspended ( TRtpId aSessionId,
TBool & aAutoSending
)

Gets the status of automatic RTCP sending.

Parameters

TRtpId aSessionId
TBool & aAutoSending

NewL(MRtpErrNotify &)

CRtpManager * NewL ( MRtpErrNotify & aErrNotify ) [static]

Parameters

MRtpErrNotify & aErrNotify

OpenL(const TRtpSdesParams &, const TDesC *, RSocketServ *, RConnection *)

TInt OpenL ( const TRtpSdesParams & aSdesInfo,
const TDesC * aRtpPacketDll,
RSocketServ * aSocketServPtr,
RConnection * aRConnPtr
)

Parameters

const TRtpSdesParams & aSdesInfo
const TDesC * aRtpPacketDll
RSocketServ * aSocketServPtr
RConnection * aRConnPtr

PrepareConnection(TCommDbConnPref &, TInt)

TInt PrepareConnection ( TCommDbConnPref & aPrefs,
TInt aIapId
) [private]

Parameters

TCommDbConnPref & aPrefs
TInt aIapId

RegisterRtcpObserver(TRtpId, MRtcpObserver &)

TInt RegisterRtcpObserver ( TRtpId aSessionId,
MRtcpObserver & aObserver
)

Parameters

TRtpId aSessionId
MRtcpObserver & aObserver

RegisterRtpObserver(TRtpId, MRtpObserver &)

TInt RegisterRtpObserver ( TRtpId aSessionId,
MRtpObserver & aObserver
)

Parameters

TRtpId aSessionId
MRtpObserver & aObserver

RemoveRtpAllObjects()

void RemoveRtpAllObjects ( ) [private]

RemoveRtpObject(const TRtpId, const TObjectType)

TInt RemoveRtpObject ( const TRtpId aMagicKey,
const TObjectType aObjectType
) [private]

Parameters

const TRtpId aMagicKey
const TObjectType aObjectType

SendDataL(TRtpId, TBool, const TDesC8 &, TRequestStatus &)

void SendDataL ( TRtpId aSessionId,
TBool aUseRTPSocket,
const TDesC8 & aData,
TRequestStatus & aStatus
)

Parameters

TRtpId aSessionId
TBool aUseRTPSocket
const TDesC8 & aData
TRequestStatus & aStatus

SendRtcpAppPacketL(TRtpId, const TRtcpApp &)

TInt SendRtcpAppPacketL ( TRtpId aTranStreamId,
const TRtcpApp & aApp
)

Parameters

TRtpId aTranStreamId
const TRtcpApp & aApp

SendRtcpByePacketL(TRtpId, const TDesC8 &)

TInt SendRtcpByePacketL ( TRtpId aTranStreamId,
const TDesC8 & aReason
)

Parameters

TRtpId aTranStreamId
const TDesC8 & aReason

SendRtcpRrPacketL(TRtpId)

TInt SendRtcpRrPacketL ( TRtpId aRcvStreamId )

Send an RTCP RR packet for a Reception stream.

Parameters

TRtpId aRcvStreamId

SendRtcpSrPacketL(TRtpId)

TInt SendRtcpSrPacketL ( TRtpId aTranStreamId )

Send an RTCP SR packet for a Transmit stream.

Parameters

TRtpId aTranStreamId

SendRtpPacket(TRtpId, const TRtpSendHeader &, const TDesC8 &)

TInt SendRtpPacket ( TRtpId aTranStreamId,
const TRtpSendHeader & aHeaderInfo,
const TDesC8 & aPayloadData
)

Parameters

TRtpId aTranStreamId
const TRtpSendHeader & aHeaderInfo
const TDesC8 & aPayloadData

SendRtpPacket(TRtpId, const TRtpSendHeader &, const TDesC8 &, TRequestStatus &)

TInt SendRtpPacket ( TRtpId aTranStreamId,
const TRtpSendHeader & aHeaderInfo,
const TDesC8 & aPayloadData,
TRequestStatus & aStatus
)

Parameters

TRtpId aTranStreamId
const TRtpSendHeader & aHeaderInfo
const TDesC8 & aPayloadData
TRequestStatus & aStatus

SendRtpPacket(TRtpId, TRtpSequence, const TRtpSendHeader &, const TDesC8 &, TRequestStatus &)

TInt SendRtpPacket ( TRtpId aTranStreamId,
TRtpSequence aSequenceNum,
const TRtpSendHeader & aHeaderInfo,
const TDesC8 & aPayloadData,
TRequestStatus & aStatus
)

Parameters

TRtpId aTranStreamId
TRtpSequence aSequenceNum
const TRtpSendHeader & aHeaderInfo
const TDesC8 & aPayloadData
TRequestStatus & aStatus

SetLocalSdes(const TRtpSdesParams &)

void SetLocalSdes ( const TRtpSdesParams & aSdesInfo )

Parameters

const TRtpSdesParams & aSdesInfo

SetNonRTPDataObserver(TRtpId, MNonRTPDataObserver *)

TInt SetNonRTPDataObserver ( TRtpId aSessionId,
MNonRTPDataObserver * aNonRTPDataObserver
)

Parameters

TRtpId aSessionId
MNonRTPDataObserver * aNonRTPDataObserver

SetRemoteAddress(TRtpId, TInetAddr &)

TInt SetRemoteAddress ( TRtpId aSessionId,
TInetAddr & aRemoteAddr
)

Parameters

TRtpId aSessionId
TInetAddr & aRemoteAddr

SetRemoteRtcpAddress(TRtpId, TInetAddr &)

TInt SetRemoteRtcpAddress ( TRtpId aSessionId,
TInetAddr & aRemoteAddr
)

Parameters

TRtpId aSessionId
TInetAddr & aRemoteAddr

SetRtcpParameters(TRtpId, const TRtcpParams &)

TInt SetRtcpParameters ( TRtpId aSessionId,
const TRtcpParams & aRtcpParams
)

Parameters

TRtpId aSessionId
const TRtcpParams & aRtcpParams

SetSamplingRate(TUint8, TUint32)

TInt SetSamplingRate ( TUint8 aPayloadType,
TUint32 aSampleRate
)

Parameters

TUint8 aPayloadType
TUint32 aSampleRate

StartConnection(TInt)

TInt StartConnection ( TInt aIapId )

Open and initialize the CRtpAPI object synchronously.

Parameters

TInt aIapId

StartConnection(TRequestStatus &, TInt)

TInt StartConnection ( TRequestStatus & aStatus,
TInt aIapId
)

Open and initialize the CRtpAPI object in asynchronous mode

Parameters

TRequestStatus & aStatus
TInt aIapId

StartSession(TRtpId)

TInt StartSession ( TRtpId aSessionId )

Parameters

TRtpId aSessionId

SuspendRtcpSending(TRtpId, TBool)

TInt SuspendRtcpSending ( TRtpId aSessionId,
TBool aAutoSending
)

Suspend RTCP sending on/off, calculations will continue.

Parameters

TRtpId aSessionId
TBool aAutoSending

UnregisterRtcpObserver(TRtpId)

void UnregisterRtcpObserver ( TRtpId aSessionId )

Parameters

TRtpId aSessionId

UnregisterRtpObserver(TRtpId)

void UnregisterRtpObserver ( TRtpId aSessionId )

Parameters

TRtpId aSessionId

Member Enumerations Documentation

Enum TCreateStreamType

Enumerators

ECreateRecvStream = 0
ECreateTranStream
ECreateTranStreamExt

Member Data Documentation

RConnection iConn

RConnection iConn [private]

RConnection * iConnPtr

RConnection * iConnPtr [private]

TBool iConnected

TBool iConnected [private]

CRtpSDES * iDefaultSdes

CRtpSDES * iDefaultSdes [private]

TBool iEnableRtcp

TBool iEnableRtcp [private]

MRtpErrNotify & iErrNotify

MRtpErrNotify & iErrNotify [private]

TInt iIapId

TInt iIapId [private]

RLibrary iLibrary

RLibrary iLibrary [private]

TInetAddr iLocalAddr

TInetAddr iLocalAddr [private]

TRtpId iNumOfObjects

TRtpId iNumOfObjects [private]

TCommDbConnPref iPrefs

TCommDbConnPref iPrefs [private]

TUint32 iProfileRTPTimeRates

TUint32 iProfileRTPTimeRates [private]

CArrayFixFlat< TArrayStore > * iSessionArray

CArrayFixFlat < TArrayStore > * iSessionArray [private]

RSocketServ iSocketServ

RSocketServ iSocketServ [private]

RSocketServ * iSocketServPtr

RSocketServ * iSocketServPtr [private]

TBool iStandardRtp

TBool iStandardRtp [private]