CMceComMediaStream Class Reference

class CMceComMediaStream : public CBase

Inherits from

Public Member Functions
~CMceComMediaStream ()
void AddCodecL ( CMceComCodec *)
void AddSinkL ( CMceComMediaSink *)
void AddSinkL ( MMceComSerializationContext &)
CMceComMediaStream * AnswerStream ()
TMceComFactory BaseFactory ()
void BindL ( CMceComMediaStream *)
TBool Binder ()
TBool BoundStream ()
CMceComMediaStream & BoundStreamL ()
CMceComMediaStream * CloneL ()
void DeleteSink ( TInt )
void DestroyCodecs ()
TBool & DowngradedEndpoints ()
CMceComMediaSink & EmptySinkL ()
CMceComMediaSource & EmptySourceL ()
TInt EventReceivedL ( TMceComEvent &)
void ExternalizeFlatL ( RWriteStream &)
void ExternalizeL ( MMceComSerializationContext &)
TMceComMediaStreamFactory Factory ()
CMceComCodec * FindCodecL ( CMceComCodec &)
TMceMediaId Id ()
void InitializeL ( CMceComSession &)
void InternalizeFlatL ( RReadStream &)
void InternalizeL ( MMceComSerializationContext &)
TBool IsEnabled ()
TUint LocalMediaPort ()
CMceComMediaStream * OfferStream ()
CMceComMediaStream * ReceiveStream ()
TUint RemoteMediaPort ()
TBool RemoteMediaPortChanged ( TUint )
TBool RemoteRTCPAddressChanged ( TUint , TInetAddr )
void RemoveCodecL ( CMceComCodec *)
void ReorderCodecs ()
TInt & SdpIndex ()
CMceComMediaStream * SendStream ()
TUint64 SerializationId ()
CMceComSession * Session ()
void SetIgnoreRemotePort ( TBool )
void SetLocalMediaPort ( TUint )
void SetRemoteMediaPort ( TUint )
void SetRemoteRtcpMediaAddrL ( TDesC16 &)
void SetRemoteRtcpMediaPort ( TUint )
void SetSourceL ( CMceComMediaSource *)
void SetSourceL ( MMceComSerializationContext &)
RPointerArray < CMceComMediaSink > & Sinks ()
CMceComMediaSource * Source ()
void UpdateL ( CMceComMediaStream &)
TBool UseRtcp ()
CMceComMediaStream & operator() ()
const CMceComMediaStream & operator() ()
Protected Member Functions
CMceComMediaStream ( TMceMediaType )
void ConstructL ()
void ConstructL ( CMceComMediaStream &)
Private Member Functions
void DeleteSource ()
void DoBind ( 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
enum TStreamType { 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 ( TMceMediaType aType ) [protected]

C++ default constructor.

Parameters

TMceMediaType aType

~CMceComMediaStream()

~CMceComMediaStream ( )

Destructor.

Member Functions Documentation

AddCodecL(CMceComCodec *)

void AddCodecL ( CMceComCodec * aCodec ) [pure virtual]

Adds codec to the stream.

Parameters

CMceComCodec * aCodec codec to be added to the stream. Ownership is transferred.

AddSinkL(CMceComMediaSink *)

void AddSinkL ( CMceComMediaSink * aSink )

Adds sink to the stream.

Parameters

CMceComMediaSink * aSink sink to be added to the stream.

AddSinkL(MMceComSerializationContext &)

void AddSinkL ( MMceComSerializationContext & aSerCtx )

Adds sink, during serialization, to the stream.

Parameters

MMceComSerializationContext & aSerCtx serialization context

AnswerStream()

CMceComMediaStream * AnswerStream ( )

Gives answer stream

BaseFactory()

TMceComFactory BaseFactory ( )

Factory

BindL(CMceComMediaStream *)

void BindL ( CMceComMediaStream * aStream )

Binds opposite direction stream to this stream.

Parameters

CMceComMediaStream * aStream another 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()

void ConstructL ( ) [protected]

second-phase constructor

ConstructL(CMceComMediaStream &)

void ConstructL ( CMceComMediaStream & aStream ) [protected]

second-phase copy constructor

Parameters

CMceComMediaStream & aStream

DeleteSink(TInt)

void DeleteSink ( TInt aIndex )

Deletes sink

Parameters

TInt aIndex index of sink in the array

DeleteSource()

void DeleteSource ( ) [private]

Deletes source

DestroyCodecs()

void DestroyCodecs ( ) [pure virtual]

Clears list of codecs and deletes each codec in it.

DoBind(CMceComMediaStream *)

void DoBind ( CMceComMediaStream * aStream ) [private]

one-way bind

Parameters

CMceComMediaStream * aStream another 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 & aEvent the event

ExternalizeFlatL(RWriteStream &)

void ExternalizeFlatL ( RWriteStream & aWriteStream )

Externalizes flat data

Parameters

RWriteStream & aWriteStream write stream

ExternalizeL(MMceComSerializationContext &)

void ExternalizeL ( MMceComSerializationContext & aSerCtx )

Externalizes

Parameters

MMceComSerializationContext & aSerCtx context 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 & aCodec the search term

Id()

TMceMediaId Id ( ) const

ID

InitializeL(CMceComSession &)

void InitializeL ( CMceComSession & aParent ) [virtual]

Initializes

Parameters

CMceComSession & aParent the parent

InternalizeFlatL(RReadStream &)

void InternalizeFlatL ( RReadStream & aReadStream )

Internalizes flat data

Parameters

RReadStream & aReadStream read stream

InternalizeL(MMceComSerializationContext &)

void InternalizeL ( MMceComSerializationContext & aSerCtx )

Internalizes

Parameters

MMceComSerializationContext & aSerCtx context 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 ( TUint aNewPort )

Checks whether remote media port has changed

Parameters

TUint aNewPort

RemoteRTCPAddressChanged(TUint, TInetAddr)

TBool RemoteRTCPAddressChanged ( TUint aNewPort,
TInetAddr aAddr
)

Checks whether remote RTCP address, and port has changed

Parameters

TUint aNewPort
TInetAddr aAddr

RemoveCodecL(CMceComCodec *)

void RemoveCodecL ( CMceComCodec * aCodec ) [pure virtual]

Removes codec from stream

Parameters

CMceComCodec * aCodec the codec

ReorderCodecs()

void ReorderCodecs ( ) [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)

void SetIgnoreRemotePort ( TBool aIgnore )

Stores remote port.

Parameters

TBool aIgnore

SetLocalMediaPort(TUint)

void SetLocalMediaPort ( TUint aPort )

Sets local media port

Parameters

TUint aPort local media port

SetRemoteMediaPort(TUint)

void SetRemoteMediaPort ( TUint aPort )

Sets remote media port

Parameters

TUint aPort remote media port

SetRemoteRtcpMediaAddrL(TDesC16 &)

void SetRemoteRtcpMediaAddrL ( TDesC16 & aAddr )

Sets remote rtcp media address

Parameters

TDesC16 & aAddr remote rtcp media address

SetRemoteRtcpMediaPort(TUint)

void SetRemoteRtcpMediaPort ( TUint aPort )

Sets remote media port

Parameters

TUint aPort remote media port

SetSourceL(CMceComMediaSource *)

void SetSourceL ( CMceComMediaSource * aSource )

Adds source to the stream.

Parameters

CMceComMediaSource * aSource source to be added to the stream.

SetSourceL(MMceComSerializationContext &)

void SetSourceL ( MMceComSerializationContext & aSerCtx )

Adds source, during serialization, to the stream.

Parameters

MMceComSerializationContext & aSerCtx serialization 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 &)

void UpdateL ( CMceComMediaStream & aStream ) [virtual]

Updates

Parameters

CMceComMediaStream & aStream new 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