CMceComMediaStream Class Reference

class CMceComMediaStream : public CBase

Inherits from

Public Member Functions
~CMceComMediaStream()
voidAddCodecL(CMceComCodec *)
voidAddSinkL(CMceComMediaSink *)
voidAddSinkL(MMceComSerializationContext &)
CMceComMediaStream *AnswerStream()
TMceComFactory BaseFactory()
voidBindL(CMceComMediaStream *)
TBool Binder()
TBool BoundStream()
CMceComMediaStream &BoundStreamL()
CMceComMediaStream *CloneL()
voidDeleteSink(TInt)
voidDestroyCodecs()
TBool &DowngradedEndpoints()
CMceComMediaSink &EmptySinkL()
CMceComMediaSource &EmptySourceL()
TInt EventReceivedL(TMceComEvent &)
voidExternalizeFlatL(RWriteStream &)
voidExternalizeL(MMceComSerializationContext &)
TMceComMediaStreamFactory Factory()
CMceComCodec *FindCodecL(CMceComCodec &)
TMceMediaId Id()
voidInitializeL(CMceComSession &)
voidInternalizeFlatL(RReadStream &)
voidInternalizeL(MMceComSerializationContext &)
TBool IsEnabled()
TUint LocalMediaPort()
CMceComMediaStream *OfferStream()
CMceComMediaStream *ReceiveStream()
TUint RemoteMediaPort()
TBool RemoteMediaPortChanged(TUint)
TBool RemoteRTCPAddressChanged(TUint, TInetAddr)
voidRemoveCodecL(CMceComCodec *)
voidReorderCodecs()
TInt &SdpIndex()
CMceComMediaStream *SendStream()
TUint64 SerializationId()
CMceComSession *Session()
voidSetIgnoreRemotePort(TBool)
voidSetLocalMediaPort(TUint)
voidSetRemoteMediaPort(TUint)
voidSetRemoteRtcpMediaAddrL(TDesC16 &)
voidSetRemoteRtcpMediaPort(TUint)
voidSetSourceL(CMceComMediaSource *)
voidSetSourceL(MMceComSerializationContext &)
RPointerArray< CMceComMediaSink > &Sinks()
CMceComMediaSource *Source()
voidUpdateL(CMceComMediaStream &)
TBool UseRtcp()
CMceComMediaStream &operator()()
const CMceComMediaStream &operator()()
Protected Member Functions
CMceComMediaStream(TMceMediaType)
voidConstructL()
voidConstructL(CMceComMediaStream &)
Private Member Functions
voidDeleteSource()
voidDoBind(CMceComMediaStream *)
TBool DoUseRtcp()
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
enumTStreamType { ELocalStream, ESendOnlyStream, EReceiveOnlyStream, ESendStream, EReceiveStream }
Public Attributes
CMceComMediaSink *iEmptySink
CMceComMediaSource *iEmptySource
TMceMediaId iID
TBool iIgnoreRemotePort
TBool iIsEnabled
TUint32 iLinkId
TBool iLinkOwner
CMceComMediaStream *iLinkedStream
TUint iLocalMediaPort
CDesC8Array *iLocalMediaSDPLines
RPointerArray< TMcePreconditions >iPreconditions
TUint iRemoteMediaPort
CDesC8Array *iRemoteMediaSDPLines
TInetAddr iRemoteRtcpAddress
TUint iRemoteRtcpPort
TInt iSdpIndex
RPointerArray< CMceComMediaSink >iSinks
CMceComMediaSource *iSource
CMceMediaStream::TState iState
TStreamType iStreamType
TMceMediaType iType
Protected Attributes
CMceComSession *iSession
Private Attributes
TBool iDowngradedEnpoints

Constructor & Destructor Documentation

CMceComMediaStream(TMceMediaType)

CMceComMediaStream(TMceMediaTypeaType)[protected]

C++ default constructor.

Parameters

TMceMediaType aType

~CMceComMediaStream()

~CMceComMediaStream()

Destructor.

Member Functions Documentation

AddCodecL(CMceComCodec *)

voidAddCodecL(CMceComCodec *aCodec)[pure virtual]

Adds codec to the stream.

Parameters

CMceComCodec * aCodeccodec to be added to the stream. Ownership is transferred.

AddSinkL(CMceComMediaSink *)

voidAddSinkL(CMceComMediaSink *aSink)

Adds sink to the stream.

Parameters

CMceComMediaSink * aSinksink to be added to the stream.

AddSinkL(MMceComSerializationContext &)

voidAddSinkL(MMceComSerializationContext &aSerCtx)

Adds sink, during serialization, to the stream.

Parameters

MMceComSerializationContext & aSerCtxserialization context

AnswerStream()

CMceComMediaStream *AnswerStream()

Gives answer stream

BaseFactory()

TMceComFactory BaseFactory()

Factory

BindL(CMceComMediaStream *)

voidBindL(CMceComMediaStream *aStream)

Binds opposite direction stream to this stream.

Parameters

CMceComMediaStream * aStreamanother stream to be bind to the stream.

Binder()

TBool Binder()const

Checks if this is binder (biding owner)

BoundStream()

TBool BoundStream()const

Checks if opposite direction stream is set.

BoundStreamL()

CMceComMediaStream &BoundStreamL()

Gets opposite direction stream of this stream.

CloneL()

CMceComMediaStream *CloneL()[pure virtual]

Clones whole stream object

ConstructL()

voidConstructL()[protected]

second-phase constructor

ConstructL(CMceComMediaStream &)

voidConstructL(CMceComMediaStream &aStream)[protected]

second-phase copy constructor

Parameters

CMceComMediaStream & aStream

DeleteSink(TInt)

voidDeleteSink(TIntaIndex)

Deletes sink

Parameters

TInt aIndexindex of sink in the array

DeleteSource()

voidDeleteSource()[private]

Deletes source

DestroyCodecs()

voidDestroyCodecs()[pure virtual]

Clears list of codecs and deletes each codec in it.

DoBind(CMceComMediaStream *)

voidDoBind(CMceComMediaStream *aStream)[private]

one-way bind

Parameters

CMceComMediaStream * aStreamanother stream to be bind to the stream.

DoUseRtcp()

TBool DoUseRtcp()const [private]

Checks whether RTCP should be used. return ETrue, if the source and all the sinks indicate RTCP usage, otherwise EFalse.

DowngradedEndpoints()

TBool &DowngradedEndpoints()

EmptySinkL()

CMceComMediaSink &EmptySinkL()

Gets empty sink

EmptySourceL()

CMceComMediaSource &EmptySourceL()

Gets empty source

EventReceivedL(TMceComEvent &)

TInt EventReceivedL(TMceComEvent &aEvent)[virtual]

Traversal event handler

Parameters

TMceComEvent & aEventthe event

ExternalizeFlatL(RWriteStream &)

voidExternalizeFlatL(RWriteStream &aWriteStream)

Externalizes flat data

Parameters

RWriteStream & aWriteStreamwrite stream

ExternalizeL(MMceComSerializationContext &)

voidExternalizeL(MMceComSerializationContext &aSerCtx)

Externalizes

Parameters

MMceComSerializationContext & aSerCtxcontext for serialization

Factory()

TMceComMediaStreamFactory Factory()[static]

Factory

FindCodecL(CMceComCodec &)

CMceComCodec *FindCodecL(CMceComCodec &aCodec)[pure virtual]

Searches for codec matching with input codec instance or sdp name

Parameters

CMceComCodec & aCodecthe search term

Id()

TMceMediaId Id()const

ID

InitializeL(CMceComSession &)

voidInitializeL(CMceComSession &aParent)[virtual]

Initializes

Parameters

CMceComSession & aParentthe parent

InternalizeFlatL(RReadStream &)

voidInternalizeFlatL(RReadStream &aReadStream)

Internalizes flat data

Parameters

RReadStream & aReadStreamread stream

InternalizeL(MMceComSerializationContext &)

voidInternalizeL(MMceComSerializationContext &aSerCtx)

Internalizes

Parameters

MMceComSerializationContext & aSerCtxcontext for serialization

IsEnabled()

TBool IsEnabled()[virtual]

Returns ETrue, if enabled

LocalMediaPort()

TUint LocalMediaPort()const

Gets local media port

OfferStream()

CMceComMediaStream *OfferStream()

Gives offer stream

ReceiveStream()

CMceComMediaStream *ReceiveStream()

Gives receive stream

RemoteMediaPort()

TUint RemoteMediaPort()const

Gets remote media port

RemoteMediaPortChanged(TUint)

TBool RemoteMediaPortChanged(TUintaNewPort)

Checks whether remote media port has changed

Parameters

TUint aNewPort

RemoteRTCPAddressChanged(TUint, TInetAddr)

TBool RemoteRTCPAddressChanged(TUintaNewPort,
TInetAddraAddr
)

Checks whether remote RTCP address, and port has changed

Parameters

TUint aNewPort
TInetAddr aAddr

RemoveCodecL(CMceComCodec *)

voidRemoveCodecL(CMceComCodec *aCodec)[pure virtual]

Removes codec from stream

Parameters

CMceComCodec * aCodecthe codec

ReorderCodecs()

voidReorderCodecs()[pure virtual]

SdpIndex()

TInt &SdpIndex()

Gives sdp index

SendStream()

CMceComMediaStream *SendStream()

Gives send stream

SerializationId()

TUint64 SerializationId()const

Returns serialization id

Session()

CMceComSession *Session()const

Parent object

SetIgnoreRemotePort(TBool)

voidSetIgnoreRemotePort(TBoolaIgnore)

Stores remote port.

Parameters

TBool aIgnore

SetLocalMediaPort(TUint)

voidSetLocalMediaPort(TUintaPort)

Sets local media port

Parameters

TUint aPortlocal media port

SetRemoteMediaPort(TUint)

voidSetRemoteMediaPort(TUintaPort)

Sets remote media port

Parameters

TUint aPortremote media port

SetRemoteRtcpMediaAddrL(TDesC16 &)

voidSetRemoteRtcpMediaAddrL(TDesC16 &aAddr)

Sets remote rtcp media address

Parameters

TDesC16 & aAddrremote rtcp media address

SetRemoteRtcpMediaPort(TUint)

voidSetRemoteRtcpMediaPort(TUintaPort)

Sets remote media port

Parameters

TUint aPortremote media port

SetSourceL(CMceComMediaSource *)

voidSetSourceL(CMceComMediaSource *aSource)

Adds source to the stream.

Parameters

CMceComMediaSource * aSourcesource to be added to the stream.

SetSourceL(MMceComSerializationContext &)

voidSetSourceL(MMceComSerializationContext &aSerCtx)

Adds source, during serialization, to the stream.

Parameters

MMceComSerializationContext & aSerCtxserialization context

Sinks()

RPointerArray< CMceComMediaSink > &Sinks()

Gets array of sinks of the stream.

Source()

CMceComMediaSource *Source()

Gets source of the stream. Returns null is source not set.

UpdateL(CMceComMediaStream &)

voidUpdateL(CMceComMediaStream &aStream)[virtual]

Updates

Parameters

CMceComMediaStream & aStreamnew stream

UseRtcp()

TBool UseRtcp()const

Checks whether RTCP should be used. return ETrue, if the source and all the sinks indicate RTCP usage, otherwise EFalse.

operator()()

CMceComMediaStream &operator()()

Gives 'main' stream

operator()()

const CMceComMediaStream &operator()()const

Gives 'main' stream

Member Enumerations Documentation

Enum TStreamType

Enumerators

ELocalStream
ESendOnlyStream
EReceiveOnlyStream
ESendStream
EReceiveStream

Member Data Documentation

TBool iDowngradedEnpoints

TBool iDowngradedEnpoints[private]

CMceComMediaSink * iEmptySink

CMceComMediaSink *iEmptySink

empty sink

CMceComMediaSource * iEmptySource

CMceComMediaSource *iEmptySource

empty source

TMceMediaId iID

TMceMediaId iID

ID

TBool iIgnoreRemotePort

TBool iIgnoreRemotePort

ignore remote port comparison

TBool iIsEnabled

TBool iIsEnabled

state, enabled or disabled

TUint32 iLinkId

TUint32 iLinkId

link id

TBool iLinkOwner

TBool iLinkOwner

does this owns the link

CMceComMediaStream * iLinkedStream

CMceComMediaStream *iLinkedStream

linked stream. Owned if iLinkOwner is ETrue

TUint iLocalMediaPort

TUint iLocalMediaPort

Local port

CDesC8Array * iLocalMediaSDPLines

CDesC8Array *iLocalMediaSDPLines

local sdp media lines

RPointerArray< TMcePreconditions > iPreconditions

RPointerArray< TMcePreconditions >iPreconditions

preconditions

TUint iRemoteMediaPort

TUint iRemoteMediaPort

Remote port

CDesC8Array * iRemoteMediaSDPLines

CDesC8Array *iRemoteMediaSDPLines

remote sdp media lines

TInetAddr iRemoteRtcpAddress

TInetAddr iRemoteRtcpAddress

Remote RTCP IP-address (IPv4 or IPv6)

TUint iRemoteRtcpPort

TUint iRemoteRtcpPort

Remote RTCP port, if 0 then use RTP port + 1

TInt iSdpIndex

TInt iSdpIndex

sdp index

CMceComSession * iSession

CMceComSession *iSession[protected]

session

RPointerArray< CMceComMediaSink > iSinks

RPointerArray< CMceComMediaSink >iSinks

sinks

CMceComMediaSource * iSource

CMceComMediaSource *iSource

source

CMceMediaStream::TState iState

CMceMediaStream::TState iState

stream state

TStreamType iStreamType

TStreamType iStreamType

stream type

TMceMediaType iType

TMceMediaType iType

type