CMceVideoStream Class Reference

class CMceVideoStream : public CMceMediaStream

Class for representing unidirectional video stream.

It defines the used video codecs for the stream. In order to be complete structure, at least one codec is required.

mceclient.lib

Inherits from

Public Member Functions
~CMceVideoStream()
IMPORT_C voidAddCodecL(CMceVideoCodec *)
const RPointerArray< CMceCodec > &BaseCodecs()
IMPORT_C const RPointerArray< CMceVideoCodec > &Codecs()
TInt EventReceivedL(TMceEvent &)
voidExternalizeL(MMceComSerializationContext &)
CMceCodec *FindCodec(CMceCodec &)
voidInitializeL(CMceSession &, TBool)
voidInitializeL(CMceManager *, CMceSession &)
voidInternalizeL(MMceComSerializationContext &)
IMPORT_C CMceVideoStream *NewL()
IMPORT_C CMceVideoStream *NewLC()
IMPORT_C voidRemoveCodecL(CMceVideoCodec &)
voidRemoveCodecL(CMceVideoCodec &, TBool)
voidReorderCodecsByPreferenceL(TBool)
IMPORT_C voidReplaceCodecsL(RPointerArray< CMceVideoCodec > *)
IMPORT_C const RPointerArray< const CMceVideoCodec > &SupportedVideoCodecs()
voidSynchronizeWithFileL(CMceFileSource &)
Protected Member Functions
TBool IsAllowedCombination()
Private Member Functions
CMceVideoStream()
voidConstructL()
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()
CMceMediaStream::AddSinkL(CMceMediaSink *)
CMceMediaStream::AddSinkL(MMceComSerializationContext &)
CMceMediaStream::AddedL()
CMceMediaStream::BaseFactory()const
CMceMediaStream::BindL(CMceMediaStream *)
CMceMediaStream::Binder()const
CMceMediaStream::Bound()const
CMceMediaStream::BoundStream()const
CMceMediaStream::BoundStreamL()const
CMceMediaStream::CMceMediaStream()
CMceMediaStream::ConstructL(CMceComMediaStream *)
CMceMediaStream::DisableL()
CMceMediaStream::EnableL()
CMceMediaStream::ExternalizeFlatL(RWriteStream &)
CMceMediaStream::Factory()
CMceMediaStream::FindCodec(const RPointerArray< CMceCodec > &,CMceCodec &)
CMceMediaStream::FlatData()
CMceMediaStream::HandleMediaError(TState,TBool,TInt)
CMceMediaStream::Id()const
CMceMediaStream::InternalizeFlatL(RReadStream &)
CMceMediaStream::IsEnabled()const
CMceMediaStream::LocalMediaPort()const
CMceMediaStream::MediaAttributeLinesL()
CMceMediaStream::RemoveSinkL(CMceMediaSink &)
CMceMediaStream::SerializationId()const
CMceMediaStream::Session()const
CMceMediaStream::SetLocalMediaPortL(TUint)
CMceMediaStream::SetMediaAttributeLinesL(CDesC8Array *)
CMceMediaStream::SetSourceL(CMceMediaSource *)
CMceMediaStream::SetSourceL(MMceComSerializationContext &)
CMceMediaStream::SetState(TState)
CMceMediaStream::Sinks()const
CMceMediaStream::Source()const
CMceMediaStream::State()const
CMceMediaStream::Type()const
CMceMediaStream::Updated()
CMceMediaStream::~CMceMediaStream()
Inherited Enumerations
CMceMediaStream:TState
Private Attributes
RPointerArray< CMceVideoCodec >iCodecs
TAny *iReserved1
RPointerArray< const CMceVideoCodec >iSupportedVideoCodecs
Inherited Attributes
CMceMediaStream::iFlatData
CMceMediaStream::iLinkedStream
CMceMediaStream::iSession
CMceMediaStream::iSinks
CMceMediaStream::iSource

Constructor & Destructor Documentation

CMceVideoStream()

CMceVideoStream()[private]

C++ default constructor.

~CMceVideoStream()

IMPORT_C~CMceVideoStream()

Destructor.

Member Functions Documentation

AddCodecL(CMceVideoCodec *)

IMPORT_C voidAddCodecL(CMceVideoCodec *aCodec)

Adds codec to the stream. The codec contains preference value which will define its preference when added to the stream. Preference of codecs with the same preference value is determined by order they were added to the stream. In case of bound streams, codec is also automatically added to the opposite direction stream. After adding a codec an array of codecs received with a call to Codecs() is not valid.

Parameters

CMceVideoCodec * aCodeccodec added to the stream; ownership is transferred

BaseCodecs()

const RPointerArray< CMceCodec > &BaseCodecs()[virtual]

Return codecs of stream.

Codecs()

IMPORT_C const RPointerArray< CMceVideoCodec > &Codecs()

Returns the codecs available to the session. For CMceOutSession, array contains all codecs supported by terminal in default. For CMceInSession, array contains codecs that were offered by remote terminal, and supported by local terminal. Codecs are in preference order in the array. Codec in the first element of the array has highest preference. Adding, removing or replacing a codec or changing the preference of a codec causes the returned array to be in invalid state.

ConstructL()

voidConstructL()[private]

Second-phase constructor.

EventReceivedL(TMceEvent &)

TInt EventReceivedL(TMceEvent &aEvent)[virtual]

Traversal event handler.

Parameters

TMceEvent & aEventthe event

ExternalizeL(MMceComSerializationContext &)

voidExternalizeL(MMceComSerializationContext &aSerCtx)[virtual]

Externalizes

Parameters

MMceComSerializationContext & aSerCtx

FindCodec(CMceCodec &)

CMceCodec *FindCodec(CMceCodec &aCodec)[virtual]

Searches for codec matching with input codec instance or sdp name

Parameters

CMceCodec & aCodecthe search term

InitializeL(CMceSession &, TBool)

voidInitializeL(CMceSession &aParent,
TBoolaDiscardUnusedCodecs
)[virtual]

Initializes the stream.

Parameters

CMceSession & aParentthe parent
TBool aDiscardUnusedCodecs

InitializeL(CMceManager *, CMceSession &)

voidInitializeL(CMceManager *aManager,
CMceSession &aSession
)[virtual]

Initializes the stream.

Parameters

CMceManager * aManagerthe manager; ownership is not transferred
CMceSession & aSessionthe Session.

InternalizeL(MMceComSerializationContext &)

voidInternalizeL(MMceComSerializationContext &aSerCtx)[virtual]

Internalizes

Parameters

MMceComSerializationContext & aSerCtx

IsAllowedCombination()

TBool IsAllowedCombination()[protected, virtual]

Determine whether current combination of source and sinks is allowed for spesific stream type.

NewL()

IMPORT_C CMceVideoStream *NewL()[static]

Two-phased constructor.

NewLC()

IMPORT_C CMceVideoStream *NewLC()[static]

Two-phased constructor.

RemoveCodecL(CMceVideoCodec &)

IMPORT_C voidRemoveCodecL(CMceVideoCodec &aCodec)

Removes codec from the stream. In case of bound streams, codec is also automatically removed from the opposite direction stream. After removing a codec an array of codecs previously received with a call to Codecs() is not valid.

Parameters

CMceVideoCodec & aCodeccodec removed from stream

RemoveCodecL(CMceVideoCodec &, TBool)

voidRemoveCodecL(CMceVideoCodec &aCodec,
TBoolaBinderOriginated
)

Removes codec

Parameters

CMceVideoCodec & aCodec
TBool aBinderOriginated

ReorderCodecsByPreferenceL(TBool)

voidReorderCodecsByPreferenceL(TBoolaDiscardUnusedCodecs)[virtual]

Arrange video codecs according codec preferences.

Parameters

TBool aDiscardUnusedCodecs

ReplaceCodecsL(RPointerArray< CMceVideoCodec > *)

IMPORT_C voidReplaceCodecsL(RPointerArray< CMceVideoCodec > *aCodecs)

Replaces codecs of the stream. Preference values of codecs will define the preference order. In case of bound streams, codecs are also automatically added to the opposite direction stream. After replacing codecs an array of codecs received with a call to Codecs() is not valid.

Parameters

RPointerArray< CMceVideoCodec > * aCodecsarray of codecs which will replace existing codecs; ownership is transferred

SupportedVideoCodecs()

IMPORT_C const RPointerArray< const CMceVideoCodec > &SupportedVideoCodecs()const

Gets supported video codecs of the current stream configuration. Supported codecs for this video stream is affected by attached sinks and sources.

SynchronizeWithFileL(CMceFileSource &)

voidSynchronizeWithFileL(CMceFileSource &aFile)[virtual]

Called file source wants to synchronized with stream

Parameters

CMceFileSource & aFilethe file source

Member Data Documentation

RPointerArray< CMceVideoCodec > iCodecs

RPointerArray< CMceVideoCodec >iCodecs[private]

Codecs.

TAny * iReserved1

TAny *iReserved1[private]

RPointerArray< const CMceVideoCodec > iSupportedVideoCodecs

RPointerArray< const CMceVideoCodec >iSupportedVideoCodecs[private]

Supported video codecs.