CRtpManager Class Reference

class CRtpManager : public CBase

Container of all rtp sessions.

RtpService.dll

Inherits from

Public Member Functions
~CRtpManager()
voidCancelSend(TRtpId)
voidCancelStart()
voidClose(void)
voidCloseSession(TRtpId)
voidCloseStream(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 &)
voidSendDataL(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 &)
voidSetLocalSdes(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)
voidUnregisterRtcpObserver(TRtpId)
voidUnregisterRtpObserver(TRtpId)
Private Member Functions
CRtpManager(MRtpErrNotify &)
TInt AddRtpObject(TArrayStore)
TInt AddStreamToSession(TRtpId, TRtpId)
TRtpId AssignUniqueID()
voidCheckSdesCName()
voidConstructL(void)
TInt FindRtpObject(const TRtpId, TUint &)
TInt GetIapId(TUint32 &)
CRtpSession *GetSession(TRtpId)
TInt PrepareConnection(TCommDbConnPref &, TInt)
voidRemoveRtpAllObjects()
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
enumTCreateStreamType { 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(TArrayStoreaArrayID)[private]

Parameters

TArrayStore aArrayID

AddStreamToSession(TRtpId, TRtpId)

TInt AddStreamToSession(TRtpIdaSessionId,
TRtpIdaStreamId
)[private]

Parameters

TRtpId aSessionId
TRtpId aStreamId

AssignUniqueID()

TRtpId AssignUniqueID()[private]

CancelSend(TRtpId)

voidCancelSend(TRtpIdaSessionId)

Parameters

TRtpId aSessionId

CancelStart()

voidCancelStart()

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

CheckSdesCName()

voidCheckSdesCName()[private]

Close(void)

voidClose(void)

Parameters

void

CloseSession(TRtpId)

voidCloseSession(TRtpIdaSessionId)

Parameters

TRtpId aSessionId

CloseStream(TRtpId)

voidCloseStream(TRtpIdaStreamId)

Parameters

TRtpId aStreamId

ConstructL(void)

voidConstructL(void)[private]

Parameters

void

CreateReceiveStreamL(TRtpId, const TRcvStreamParams &)

TRtpId CreateReceiveStreamL(TRtpIdaSessionId,
const TRcvStreamParams &aParams
)

Parameters

TRtpId aSessionId
const TRcvStreamParams & aParams

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

TRtpId CreateSessionL(const TCreateSessionParams &aSessionParams,
TUint &aPort,
TBoolaEnableRtcp,
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,
TBoolaEnableRtcp,
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(TRtpIdaSessionId,
const TCreateStreamTypeaStreamType,
TRtpPayloadTypeaPayloadType,
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(TRtpIdaSessionId,
const TTranStreamParams &aParams,
const TRtpSSRCaSSRC
)

Parameters

TRtpId aSessionId
const TTranStreamParams & aParams
const TRtpSSRC aSSRC

CreateTransmitStreamL(TRtpId, const TTranStreamParams &, TRtpSSRC &)

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

Parameters

TRtpId aSessionId
const TTranStreamParams & aParams
TRtpSSRC & aSSRC

FindRtpObject(const TRtpId, TUint &)

TInt FindRtpObject(const TRtpIdaMagicKey,
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(TRtpIdaSessionId)

Parameters

TRtpId aSessionId

GetRtpSocket(TRtpId)

RSocket *GetRtpSocket(TRtpIdaSessionId)

Parameters

TRtpId aSessionId

GetSamplingRate(TUint8)

TUint32 GetSamplingRate(TUint8aPayloadType)

Parameters

TUint8 aPayloadType

GetSession(TRtpId)

CRtpSession *GetSession(TRtpIdaSessionId)[private]

Parameters

TRtpId aSessionId

GetSessionId(TRtpId)

TRtpId GetSessionId(TRtpIdaStreamId)

Parameters

TRtpId aStreamId

GetStreamStatistics(TRtpId, TRtpPeerStat &)

TInt GetStreamStatistics(TRtpIdaStreamId,
TRtpPeerStat &aStat
)

Parameters

TRtpId aStreamId
TRtpPeerStat & aStat

IsRtcpSendingSuspended(TRtpId, TBool &)

TInt IsRtcpSendingSuspended(TRtpIdaSessionId,
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,
TIntaIapId
)[private]

Parameters

TCommDbConnPref & aPrefs
TInt aIapId

RegisterRtcpObserver(TRtpId, MRtcpObserver &)

TInt RegisterRtcpObserver(TRtpIdaSessionId,
MRtcpObserver &aObserver
)

Parameters

TRtpId aSessionId
MRtcpObserver & aObserver

RegisterRtpObserver(TRtpId, MRtpObserver &)

TInt RegisterRtpObserver(TRtpIdaSessionId,
MRtpObserver &aObserver
)

Parameters

TRtpId aSessionId
MRtpObserver & aObserver

RemoveRtpAllObjects()

voidRemoveRtpAllObjects()[private]

RemoveRtpObject(const TRtpId, const TObjectType)

TInt RemoveRtpObject(const TRtpIdaMagicKey,
const TObjectTypeaObjectType
)[private]

Parameters

const TRtpId aMagicKey
const TObjectType aObjectType

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

voidSendDataL(TRtpIdaSessionId,
TBoolaUseRTPSocket,
const TDesC8 &aData,
TRequestStatus &aStatus
)

Parameters

TRtpId aSessionId
TBool aUseRTPSocket
const TDesC8 & aData
TRequestStatus & aStatus

SendRtcpAppPacketL(TRtpId, const TRtcpApp &)

TInt SendRtcpAppPacketL(TRtpIdaTranStreamId,
const TRtcpApp &aApp
)

Parameters

TRtpId aTranStreamId
const TRtcpApp & aApp

SendRtcpByePacketL(TRtpId, const TDesC8 &)

TInt SendRtcpByePacketL(TRtpIdaTranStreamId,
const TDesC8 &aReason
)

Parameters

TRtpId aTranStreamId
const TDesC8 & aReason

SendRtcpRrPacketL(TRtpId)

TInt SendRtcpRrPacketL(TRtpIdaRcvStreamId)

Send an RTCP RR packet for a Reception stream.

Parameters

TRtpId aRcvStreamId

SendRtcpSrPacketL(TRtpId)

TInt SendRtcpSrPacketL(TRtpIdaTranStreamId)

Send an RTCP SR packet for a Transmit stream.

Parameters

TRtpId aTranStreamId

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

TInt SendRtpPacket(TRtpIdaTranStreamId,
const TRtpSendHeader &aHeaderInfo,
const TDesC8 &aPayloadData
)

Parameters

TRtpId aTranStreamId
const TRtpSendHeader & aHeaderInfo
const TDesC8 & aPayloadData

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

TInt SendRtpPacket(TRtpIdaTranStreamId,
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(TRtpIdaTranStreamId,
TRtpSequenceaSequenceNum,
const TRtpSendHeader &aHeaderInfo,
const TDesC8 &aPayloadData,
TRequestStatus &aStatus
)

Parameters

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

SetLocalSdes(const TRtpSdesParams &)

voidSetLocalSdes(const TRtpSdesParams &aSdesInfo)

Parameters

const TRtpSdesParams & aSdesInfo

SetNonRTPDataObserver(TRtpId, MNonRTPDataObserver *)

TInt SetNonRTPDataObserver(TRtpIdaSessionId,
MNonRTPDataObserver *aNonRTPDataObserver
)

Parameters

TRtpId aSessionId
MNonRTPDataObserver * aNonRTPDataObserver

SetRemoteAddress(TRtpId, TInetAddr &)

TInt SetRemoteAddress(TRtpIdaSessionId,
TInetAddr &aRemoteAddr
)

Parameters

TRtpId aSessionId
TInetAddr & aRemoteAddr

SetRemoteRtcpAddress(TRtpId, TInetAddr &)

TInt SetRemoteRtcpAddress(TRtpIdaSessionId,
TInetAddr &aRemoteAddr
)

Parameters

TRtpId aSessionId
TInetAddr & aRemoteAddr

SetRtcpParameters(TRtpId, const TRtcpParams &)

TInt SetRtcpParameters(TRtpIdaSessionId,
const TRtcpParams &aRtcpParams
)

Parameters

TRtpId aSessionId
const TRtcpParams & aRtcpParams

SetSamplingRate(TUint8, TUint32)

TInt SetSamplingRate(TUint8aPayloadType,
TUint32aSampleRate
)

Parameters

TUint8 aPayloadType
TUint32 aSampleRate

StartConnection(TInt)

TInt StartConnection(TIntaIapId)

Open and initialize the CRtpAPI object synchronously.

Parameters

TInt aIapId

StartConnection(TRequestStatus &, TInt)

TInt StartConnection(TRequestStatus &aStatus,
TIntaIapId
)

Open and initialize the CRtpAPI object in asynchronous mode

Parameters

TRequestStatus & aStatus
TInt aIapId

StartSession(TRtpId)

TInt StartSession(TRtpIdaSessionId)

Parameters

TRtpId aSessionId

SuspendRtcpSending(TRtpId, TBool)

TInt SuspendRtcpSending(TRtpIdaSessionId,
TBoolaAutoSending
)

Suspend RTCP sending on/off, calculations will continue.

Parameters

TRtpId aSessionId
TBool aAutoSending

UnregisterRtcpObserver(TRtpId)

voidUnregisterRtcpObserver(TRtpIdaSessionId)

Parameters

TRtpId aSessionId

UnregisterRtpObserver(TRtpId)

voidUnregisterRtpObserver(TRtpIdaSessionId)

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]