CMceMediaStream Class Reference
class CMceMediaStream : public CBase
|
Base class for MCE media streams.
MCE Media stream represents stream of data negotiated between two terminals. Streams may transfer any data.
Enabling or disabling of a stream is not a local operation, but it requires always signalling. Thus, these operation require always to be completed by calling
CMceSession::UpdateL()
function.
mceclient.lib
Constructor & Destructor Documentation
CMceMediaStream()
CMceMediaStream
|
(
|
)
|
[protected]
|
~CMceMediaStream()
IMPORT_C
|
~CMceMediaStream
|
(
|
)
|
|
Member Functions Documentation
AddSinkL(CMceMediaSink *)
Adds sink to the stream.
CMceMediaStream
can have many sinks at a time. Ownership of passed sink is transferred. However, the same sink can be also passed to other streams resulting that streams share ownership of the sink.
Parameters
CMceMediaSink
* aSink
|
sink to be added to the stream; ownership is transferred
|
AddSinkL(MMceComSerializationContext &)
Adds sink, during serialization, to the stream.
AddedL()
void
|
AddedL
|
(
|
)
|
[virtual]
|
Called when stream is added to session
BindL(CMceMediaStream *)
Binds opposite direction stream to this stream.
Parameters
CMceMediaStream
* aStream
|
another stream to be bind to the stream; ownership is transferred
|
Binder()
Checks if this is binder (biding owner)
Bound()
Returns pointer to the bound stream and NULL if no bound stream exists.
BoundStream()
IMPORT_C
TBool
|
BoundStream
|
(
|
)
|
const
|
Checks if opposite direction stream is set.
BoundStreamL()
Gets opposite direction stream of this stream.
ConstructL(CMceComMediaStream *)
DeleteSink(TInt)
void
|
DeleteSink
|
(
|
TInt
|
aIndex
|
)
|
[private]
|
Parameters
TInt
aIndex
|
index of sink in the array
|
DeleteSource()
void
|
DeleteSource
|
(
|
)
|
[private]
|
DisableL()
void
|
DisableL
|
(
|
)
|
[virtual]
|
Disables streaming explicitly.
DoBindL(CMceMediaStream *)
EnableL()
void
|
EnableL
|
(
|
)
|
[virtual]
|
Enables streaming explicitly.
EventReceivedL(TMceEvent &)
ExternalizeFlatL(RWriteStream &)
ExternalizeL(MMceComSerializationContext &)
FindCodec(CMceCodec &)
Searches for codec matching with input codec instance or sdp name
FindCodec(const RPointerArray< CMceCodec > &, CMceCodec &)
Search for codec inside given codec array
HandleMediaError(TState, TBool, TInt)
Handles possible media errors.
InitializeL(CMceSession &, TBool)
void
|
InitializeL
|
(
|
CMceSession
&
|
aParent,
|
|
TBool
|
aDiscardUnusedCodecs
|
|
)
|
[virtual]
|
InitializeL(CMceManager *, CMceSession &)
InternalizeFlatL(RReadStream &)
InternalizeL(MMceComSerializationContext &)
IsEnabled()
IMPORT_C
TBool
|
IsEnabled
|
(
|
)
|
const
|
Returns the state of the stream.
LocalMediaPort()
IMPORT_C
TUint
|
LocalMediaPort
|
(
|
)
|
const
|
Gets the local media port.
MediaAttributeLinesL()
Gets attribute lines of the media.
RemoveSinkL(CMceMediaSink &)
Removes sink from the stream.
-
Post-condition
-
aSink cannot be used anymore and contents of previously returned sink array (
CMceMediaStream::Sinks()
) are not anymore valid
ReorderCodecsByPreferenceL(TBool)
void
|
ReorderCodecsByPreferenceL
|
(
|
TBool
|
aDiscardUnusedCodecs
|
)
|
[pure virtual]
|
Arranges codec priority order based on codecs preference values.
Parameters
TBool
aDiscardUnusedCodecs
|
ETrue if all disabled codecs should be removed from the stream
|
Session()
Gets the session this stream belongs to, if exists. The ownership is not transfered.
SetLocalMediaPortL(TUint)
IMPORT_C void
|
SetLocalMediaPortL
|
(
|
TUint
|
aLocalMediaPort
|
)
|
|
SetMediaAttributeLinesL(CDesC8Array *)
IMPORT_C void
|
SetMediaAttributeLinesL
|
(
|
CDesC8Array
*
|
aMediaSDPLines
|
)
|
|
Configures media stream by updating SDP media lines. In order to get complete update, whole session must be updated causing sending of re-invite.
SetSourceL(CMceMediaSource *)
Adds source to the stream.
CMceMediaStream
can only have one source at a time. Ownership of passed source is transferred. However, the same source can be also passed to other streams resulting that streams share ownership of the source. Passing NULL source will remove source from stream. In some cases the source might contain a codec. The codec is derived to the stream when such source is added to the stream. Derived codec will get automatically highest preference.
Parameters
CMceMediaSource
* aSource
|
source to be added to the stream; ownership is transferred
|
SetSourceL(MMceComSerializationContext &)
Adds source, during serialization, to the stream.
Sinks()
Gets array of sinks of the stream.
Source()
Gets source of the stream. Returns NULL if source is not set.
State()
Gets the state of the stream.
SynchronizeWithFileL(CMceFileSource &)
Called file source wants to synchronized with stream
Type()
Returns the type of the stream.
Updated()
void
|
Updated
|
(
|
)
|
[virtual]
|
Member Enumerations Documentation
Enum TState
Enumerators
EUninitialized
|
|
EInitialized
|
|
EBuffering
|
|
EIdle
|
|
EStreaming
|
|
EDisabled
|
|
ENoResources
|
|
ETranscodingRequired
|
|
ETranscoding
|
|
Member Data Documentation
CMceComMediaStream * iFlatData
CMceMediaStream * iLinkedStream
linked stream. Owned if iLinkOwner is ETrue
TAny * iReserved
TAny
*
|
iReserved
|
[private]
|
RPointerArray< CMceMediaSink > iSinks
CMceMediaSource * iSource
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.