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 void DisableL ()
IMPORT_C void EnableL ()
TInt EventReceivedL ( TMceEvent &)
IMPORT_C TUint32 LastPacket ()
IMPORT_C CMceRtpSink * NewL ()
IMPORT_C CMceRtpSink * NewL ( TBool , HBufC8 *)
IMPORT_C CMceRtpSink * NewLC ()
IMPORT_C void SendSRL ()
IMPORT_C TUint32 Ssrc ()
IMPORT_C void UpdateL ( TBool , HBufC8 *)
Private Member Functions
CMceRtpSink ()
void ConstructL ( TBool , HBufC8 *)
void DoITCSendL ( 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 *)

void ConstructL ( TBool aSuppressRTCP,
HBufC8 * aIdentity
) [private]

second-phase constructor

Parameters

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

DisableL()

IMPORT_C void DisableL ( ) [virtual]

Locally pauses sending of RTP packets.

DoITCSendL(TUint8)

void DoITCSendL ( TUint8 aITCFunction ) [private]

Parameters

TUint8 aITCFunction

EnableL()

IMPORT_C void EnableL ( ) [virtual]

Locally resumes sending of RTP packets.

EventReceivedL(TMceEvent &)

TInt EventReceivedL ( TMceEvent & aEvent ) [virtual]

Traversal event handler

Parameters

TMceEvent & aEvent the event

HandleEvent(TMceEvent &)

TInt HandleEvent ( TMceEvent & aEvent ) [private]

Handles event

Parameters

TMceEvent & aEvent the event

LastPacket()

IMPORT_C TUint32 LastPacket ( ) 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 ( TBool aSuppressRTCP,
HBufC8 * aIdentity = 0
) [static]

Two-phased constructor.

Parameters

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

NewLC()

IMPORT_C CMceRtpSink * NewLC ( ) [static]

Two-phased constructor.

SendSRL()

IMPORT_C void SendSRL ( )

Sends RTCP sender report to recipient.

Ssrc()

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

UpdateL(TBool, HBufC8 *)

IMPORT_C void UpdateL ( TBool aSuppressRTCP,
HBufC8 * aIdentity = 0
)
Updates settings of rtp sink.
Pre-condition
CMceSession::State() == CMceSession::EIncoming

Parameters

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