CMceRtpSink Class Reference

class CMceRtpSink : public CMceMediaSink

Class representing outgoing RTP stream in MCE.

CMceRtpSink can be used to send media data to network. It can be configured not to use RTCP during play in order to save bandwith.

CMceRtpSink allows also explicitly sending of RTP RR and SR messages.

Enable and Disable operations to it are considered to be local, so they are not signalled to remote terminal.

mceclient.lib

Inherits from

Public Member Functions
~CMceRtpSink()
IMPORT_C voidDisableL()
IMPORT_C voidEnableL()
TInt EventReceivedL(TMceEvent &)
IMPORT_C TUint32LastPacket()
IMPORT_C CMceRtpSink *NewL()
IMPORT_C CMceRtpSink *NewL(TBool, HBufC8 *)
IMPORT_C CMceRtpSink *NewLC()
IMPORT_C voidSendSRL()
IMPORT_C TUint32Ssrc()
IMPORT_C voidUpdateL(TBool, HBufC8 *)
Private Member Functions
CMceRtpSink()
voidConstructL(TBool, HBufC8 *)
voidDoITCSendL(TUint8)
TInt HandleEvent(TMceEvent &)
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()
CMceMediaSink::CMceMediaSink()
CMceMediaSink::ConstructL(CMceComMediaSink *)
CMceMediaSink::CreateEndpointProxyL()const
CMceMediaSink::DoDisableL()
CMceMediaSink::DoEnableL()
CMceMediaSink::Enabled(TBool)
CMceMediaSink::EndpointProxy()const
CMceMediaSink::ExternalizeFlatL(RWriteStream &)
CMceMediaSink::ExternalizeL(MMceComSerializationContext &)
CMceMediaSink::Factory()
CMceMediaSink::Id()const
CMceMediaSink::InitializeL(CMceManager *)
CMceMediaSink::InitializeL(CMceMediaStream &)
CMceMediaSink::InternalizeFlatL(RReadStream &)
CMceMediaSink::InternalizeL(MMceComSerializationContext &)
CMceMediaSink::IsEnabled()const
CMceMediaSink::ReferenceCount()
CMceMediaSink::SerializationId()const
CMceMediaSink::SetupEndpointProxyL(MMceEndPointProxy *)
CMceMediaSink::StreamAddedL(CMceMediaStream &)
CMceMediaSink::Type()const
CMceMediaSink::UnInitialize(CMceMediaStream &)
CMceMediaSink::UpdateL(CMceMediaSink &)
CMceMediaSink::Updated()
CMceMediaSink::UsesEndpointProxy()const
CMceMediaSink::~CMceMediaSink()
Inherited Attributes
CMceMediaSink::iEndpointProxy
CMceMediaSink::iFlatData
CMceMediaSink::iParents
CMceMediaSink::iStream

Constructor & Destructor Documentation

CMceRtpSink()

CMceRtpSink()[private]

C++ default constructor.

~CMceRtpSink()

IMPORT_C~CMceRtpSink()

Destructor.

Member Functions Documentation

ConstructL(TBool, HBufC8 *)

voidConstructL(TBoolaSuppressRTCP,
HBufC8 *aIdentity
)[private]

second-phase constructor

Parameters

TBool aSuppressRTCPETrue if RTCP not sent during play, EFalse otherwise
HBufC8 * aIdentityIdentity of user placed in RTCP, ownership not transferred.

DisableL()

IMPORT_C voidDisableL()[virtual]

Locally pauses sending of RTP packets.

DoITCSendL(TUint8)

voidDoITCSendL(TUint8aITCFunction)[private]

Parameters

TUint8 aITCFunction

EnableL()

IMPORT_C voidEnableL()[virtual]

Locally resumes sending of RTP packets.

EventReceivedL(TMceEvent &)

TInt EventReceivedL(TMceEvent &aEvent)[virtual]

Traversal event handler

Parameters

TMceEvent & aEventthe event

HandleEvent(TMceEvent &)

TInt HandleEvent(TMceEvent &aEvent)[private]

Handles event

Parameters

TMceEvent & aEventthe event

LastPacket()

IMPORT_C TUint32LastPacket()const
Returns the sequence id of the last packet sent to network. The value is updated only when sink is disabled.
Pre-condition
IsEnabled() == EFalse

NewL()

IMPORT_C CMceRtpSink *NewL()[static]

Two-phased constructor.

NewL(TBool, HBufC8 *)

IMPORT_C CMceRtpSink *NewL(TBoolaSuppressRTCP,
HBufC8 *aIdentity = 0
)[static]

Two-phased constructor.

Parameters

TBool aSuppressRTCPETrue if RTCP not sent during play, EFalse otherwise
HBufC8 * aIdentity = 0Identity of user placed in RTCP, ownership not transferred.

NewLC()

IMPORT_C CMceRtpSink *NewLC()[static]

Two-phased constructor.

SendSRL()

IMPORT_C voidSendSRL()

Sends RTCP sender report to recipient.

Ssrc()

IMPORT_C TUint32Ssrc()const
Returns the RTP stream source identifier used in network (SSRC).
Pre-condition
CMceSession::State() == CMceSession::EEstablished

UpdateL(TBool, HBufC8 *)

IMPORT_C voidUpdateL(TBoolaSuppressRTCP,
HBufC8 *aIdentity = 0
)
Updates settings of rtp sink.
Pre-condition
CMceSession::State() == CMceSession::EIncoming

Parameters

TBool aSuppressRTCPETrue if RTCP not sent during play, EFalse otherwise
HBufC8 * aIdentity = 0Identity of user placed in RTCP, ownership not transferred.