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 void AddCodecL ( CMceVideoCodec *)
const RPointerArray < CMceCodec > & BaseCodecs ()
IMPORT_C const RPointerArray < CMceVideoCodec > & Codecs ()
TInt EventReceivedL ( TMceEvent &)
void ExternalizeL ( MMceComSerializationContext &)
CMceCodec * FindCodec ( CMceCodec &)
void InitializeL ( CMceSession &, TBool )
void InitializeL ( CMceManager *, CMceSession &)
void InternalizeL ( MMceComSerializationContext &)
IMPORT_C CMceVideoStream * NewL ()
IMPORT_C CMceVideoStream * NewLC ()
IMPORT_C void RemoveCodecL ( CMceVideoCodec &)
void RemoveCodecL ( CMceVideoCodec &, TBool )
void ReorderCodecsByPreferenceL ( TBool )
IMPORT_C void ReplaceCodecsL ( RPointerArray < CMceVideoCodec > *)
IMPORT_C const RPointerArray < const CMceVideoCodec > & SupportedVideoCodecs ()
void SynchronizeWithFileL ( CMceFileSource &)
Protected Member Functions
TBool IsAllowedCombination ()
Private Member Functions
CMceVideoStream ()
void ConstructL ()
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 void AddCodecL ( 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 * aCodec codec 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()

void ConstructL ( ) [private]

Second-phase constructor.

EventReceivedL(TMceEvent &)

TInt EventReceivedL ( TMceEvent & aEvent ) [virtual]

Traversal event handler.

Parameters

TMceEvent & aEvent the event

ExternalizeL(MMceComSerializationContext &)

void ExternalizeL ( 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 & aCodec the search term

InitializeL(CMceSession &, TBool)

void InitializeL ( CMceSession & aParent,
TBool aDiscardUnusedCodecs
) [virtual]

Initializes the stream.

Parameters

CMceSession & aParent the parent
TBool aDiscardUnusedCodecs

InitializeL(CMceManager *, CMceSession &)

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

Initializes the stream.

Parameters

CMceManager * aManager the manager; ownership is not transferred
CMceSession & aSession the Session.

InternalizeL(MMceComSerializationContext &)

void InternalizeL ( 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 void RemoveCodecL ( 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 & aCodec codec removed from stream

RemoveCodecL(CMceVideoCodec &, TBool)

void RemoveCodecL ( CMceVideoCodec & aCodec,
TBool aBinderOriginated
)

Removes codec

Parameters

CMceVideoCodec & aCodec
TBool aBinderOriginated

ReorderCodecsByPreferenceL(TBool)

void ReorderCodecsByPreferenceL ( TBool aDiscardUnusedCodecs ) [virtual]

Arrange video codecs according codec preferences.

Parameters

TBool aDiscardUnusedCodecs

ReplaceCodecsL(RPointerArray< CMceVideoCodec > *)

IMPORT_C void ReplaceCodecsL ( 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 > * aCodecs array 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 &)

void SynchronizeWithFileL ( CMceFileSource & aFile ) [virtual]

Called file source wants to synchronized with stream

Parameters

CMceFileSource & aFile the 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.