CMccInterface Class Reference

class CMccInterface : public CBase

MCC subsystem client interface. Class is used for setting up and controlling multimedia streams. Details of resources needed by the cleint are unknown, hence specified in details in every session.

MCC interface is based on four components: Session, link, stream and endpoint (sink or source). In order to create multimedia streams, client need to construct it by using these four components.

mmccinterface.lib

Inherits from

Nested Classes and Structures

Public Member Functions
~CMccInterface ()
IMPORT_C TInt AddBundle ( TUint32 , TMccStreamBundle &, TUint32 &)
IMPORT_C TInt AddDataSink (const TUid , const TDesC8 &, TUint32 &)
IMPORT_C TInt AddDataSource (const TUid , const TDesC8 &, TUint32 &)
IMPORT_C TInt CancelMediaQualityRequest (const TMccMediaQualityConfig &)
IMPORT_C TInt CancelTranscodeFile ( TUint32 )
IMPORT_C TInt CloseLink ( TUint32 , TUint32 )
IMPORT_C TInt CloseSession ( TUint32 )
IMPORT_C CMccCodecInformation * CodecL ( TUint32 , TUint32 , TUint32 )
IMPORT_C TInt CreateLink ( TUint32 , TInt , TUint32 &, TMccNetSettings &)
IMPORT_C TInt CreateSession ( TUint32 &)
IMPORT_C TInt CreateStream ( TUint32 , TUint32 , TUint32 &, TInt , CMccCodecInformation &)
IMPORT_C TInt DeleteStream ( TUint32 , TUint32 , TUint32 )
IMPORT_C TInt GetBundles ( TUint32 , RArray < TMccStreamBundle > &)
IMPORT_C TInt GetCapabilities ( RPointerArray < CMccCodecInformation > &)
IMPORT_C TInt GetCapabilities (const TUid , TInt , const TDesC8 &, RPointerArray < CMccCodecInformation > &)
void GetController ( RMMFController &)
IMPORT_C TInt GetParameter ( TUint32 , TUint32 , TUint32 , TUint32 , TUint32 , TDes8 &)
IMPORT_C TInt GetSSRC ( TUint32 , TUint32 , TUint32 , TUint32 , TUint32 &)
TInt GetSupportedCodecs ( RArray < TFourCC > &)
IMPORT_C TBool LinkExists ( TUint32 , TUint32 &, const TMccNetSettings &)
IMPORT_C TInt MediaQualityRequest (const TMccMediaQualityConfig &)
IMPORT_C CMccInterface * NewL ( MMccCtrlObserver &)
IMPORT_C TInt PauseStream ( TUint32 , TUint32 , TUint32 , TUint32 , TBool )
IMPORT_C TInt PrepareStream ( TUint32 , TUint32 , TUint32 , TUint32 )
IMPORT_C TInt ReferenceCount ( TUint32 , TUint32 , TUint32 , TUint32 , TUint &)
IMPORT_C TInt RemoveBundle ( TUint32 , TUint32 )
IMPORT_C TInt RemoveDataSink ( TUint32 , TUint32 , TUint32 , TUint32 )
IMPORT_C TInt RemoveDataSource ( TUint32 , TUint32 , TUint32 , TUint32 )
IMPORT_C TInt ResumeStream ( TUint32 , TUint32 , TUint32 , TUint32 , TBool )
IMPORT_C TInt Reuse ( TUint32 , TUint32 , TUint32 , TUint32 )
IMPORT_C void SendMediaSignalL (const TMccEvent &)
IMPORT_C TInt SetCodec ( TUint32 , TUint32 , TUint32 , CMccCodecInformation &)
IMPORT_C TInt SetParameter ( TUint32 , TUint32 , TUint32 , TUint32 , TUint32 , const TDesC8 &)
IMPORT_C TInt SetRemoteAddress ( TUint32 , TUint32 , const TInetAddr &, TUint )
IMPORT_C TInt StartInactivityTimer ( TUint32 , TUint32 , TUint32 , TUint32 , TUint32 )
IMPORT_C TInt StartStream ( TUint32 , TUint32 , TUint32 , TUint32 , TBool , TBool )
IMPORT_C TInt StopInactivityTimer ( TUint32 , TUint32 , TUint32 , TUint32 )
IMPORT_C TInt StopStream ( TUint32 , TUint32 , TUint32 , TUint32 )
IMPORT_C TBool StreamsExists ( TUint32 , TUint32 )
IMPORT_C TInt TranscodeFile (const TDesC8 &, const TDesC8 &, TUint32 , TUint32 &, const CMccCodecInformation *, const CMccCodecInformation *)
IMPORT_C TInt UpdateDataSink ( TUint32 , TUint32 , TUint32 , TUint32 , const TDesC8 &)
IMPORT_C TInt UpdateDataSource ( TUint32 , TUint32 , TUint32 , TUint32 , const TDesC8 &)
Private Member Functions
CMccInterface ()
TInt AudioRouting ( TUint32 , TUint32 , TUint32 , TUint32 &)
TInt Balance ( TUint32 , TUint32 , TUint32 , TInt &, TMccDevice )
void CapabilitiesL ()
void ConstructL ( MMccCtrlObserver &)
TInt DisableViewFinder ()
TInt EnableViewFinder (const TDesC8 &)
TBool EndpointInfoMatch (const TMccEndpointInfo &, const TMccEndpointInfo &)
TMMFMessageDestination FindEndpointInfo ( TUint32 , TInt &)
TCameraInfo GetCameraInfoL ( TInt )
TInt GetCameraParameter ( TUint32 , TInt &)
TInt GetCameraParameter ( TUint32 , TReal &)
TInt GetEndpointParameter ( TUint32 , TUint32 , TUint32 , TUint32 , TUint32 , TDes8 &)
TInt GetGain ( TInt &)
TInt GetNumOfCamerasL ()
TInt GetSupportedBitrates ( TUint32 , TUint32 , TUint32 , RArray < TUint > &)
TInt GetViewFinderSettings ( TUint32 , TUint32 , TDes8 &)
TInt MaxGain ( TUint32 , TUint32 , TUint32 , TInt &)
TInt MaxVolume ( TUint32 , TUint32 , TUint32 , TInt &)
void OpenControllerL (const TUid &)
TInt RemoveEndpointInfo ( TUint32 )
TInt SendRTCPAnyData ( TUint32 , TUint32 , TUint32 , const TDesC8 &)
TInt SendRTCPReceiverReport ( TUint32 , TUint32 , TUint32 )
TInt SendRTCPSenderReport ( TUint32 , TUint32 , TUint32 )
TInt SetAudioRouting ( TUint32 , TUint32 , TUint32 , TUint32 )
TInt SetBalance ( TUint32 , TUint32 , TUint32 , TInt , TMccDevice )
TInt SetCameraParameter ( TUint32 , TInt )
TInt SetCameraParameter ( TUint32 , TReal )
TInt SetEndpointParameter ( TUint32 , TUint32 , TUint32 , TUint32 , TUint32 , const TDesC8 &)
TInt SetGain ( TInt )
TInt SetVolume ( TInt )
TInt StoreEndpointInfo ( TUint32 , const TMMFMessageDestination &)
TInt Volume ( TInt &)
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()
Private Attributes
RMMFAudioPlayDeviceCustomCommands iAudioPlayDeviceCustomCommands
RMMFAudioRecordDeviceCustomCommands iAudioRecordDeviceCustomCommands
RPointerArray < CMccCodecInformation > iCodecInformation
RMMFController iController
RArray < TMccEndpointInfo > iEndpointInfos
CMccEvent * iMccEvent
TMMFMessageDestinationPckg iMessageDest
TAny * iReserved1
TInt iReserved2

Constructor & Destructor Documentation

CMccInterface()

CMccInterface ( ) [private]

C++ default constructor.

~CMccInterface()

~CMccInterface ( ) [virtual]

Destructor.

Member Functions Documentation

AddBundle(TUint32, TMccStreamBundle &, TUint32 &)

IMPORT_C TInt AddBundle ( TUint32 aSessionId,
TMccStreamBundle & aBundle,
TUint32 & aBundleId
)

Get the reference count of given sink or source.

Parameters

TUint32 aSessionId session where stream belongs to
TMccStreamBundle & aBundle new bundle to be added in the session.
TUint32 & aBundleId identifier of the added bundle on return.

AddDataSink(const TUid, const TDesC8 &, TUint32 &)

IMPORT_C TInt AddDataSink ( const TUid aSinkType,
const TDesC8 & aParam,
TUint32 & aEndpointId
)

Adds new sink to the session. User must later call CreateStream to connect this sink to some stream.

Parameters

const TUid aSinkType type identifier of the sink.
const TDesC8 & aParam initialization parameters of the sink.
TUint32 & aEndpointId idenfier of the created sink on return.

AddDataSource(const TUid, const TDesC8 &, TUint32 &)

IMPORT_C TInt AddDataSource ( const TUid aSourceType,
const TDesC8 & aParam,
TUint32 & aEndpointId
)

Adds new source to the session. User must later call CreateStream to connect this source to some stream.

Parameters

const TUid aSourceType type identifier of the source.
const TDesC8 & aParam initialization parameters of the source.
TUint32 & aEndpointId idenfier of the created source on return.

AudioRouting(TUint32, TUint32, TUint32, TUint32 &)

TInt AudioRouting ( TUint32 aSessionId,
TUint32 aLinkId,
TUint32 aStreamId,
TUint32 & aRoutingDestination
) [private]

Parameters

TUint32 aSessionId
TUint32 aLinkId
TUint32 aStreamId
TUint32 & aRoutingDestination

Balance(TUint32, TUint32, TUint32, TInt &, TMccDevice)

TInt Balance ( TUint32 aSessionId,
TUint32 aLinkId,
TUint32 aStreamId,
TInt & aBalance,
TMccDevice aStreamType
) [private]

Parameters

TUint32 aSessionId
TUint32 aLinkId
TUint32 aStreamId
TInt & aBalance
TMccDevice aStreamType

CancelMediaQualityRequest(const TMccMediaQualityConfig &)

IMPORT_C TInt CancelMediaQualityRequest ( const TMccMediaQualityConfig & aConfig )
Cancels an outstanding media quality report. If the given media quality request data contains false data, this function will return KErrArgument.
Since
Series 60 3.2

Parameters

const TMccMediaQualityConfig & aConfig Configuration to find a outstanding media quality request

CancelTranscodeFile(TUint32)

IMPORT_C TInt CancelTranscodeFile ( TUint32 aSessionId )

Cancels transcoding of media file.

Parameters

TUint32 aSessionId session identifier for transcoding

CapabilitiesL()

void CapabilitiesL ( ) [private]

Gets supported codecs from controller.

CloseLink(TUint32, TUint32)

IMPORT_C TInt CloseLink ( TUint32 aSessionId,
TUint32 aLinkId
)

Closes MCC link. All streams of the link are also closed.

Parameters

TUint32 aSessionId session ID
TUint32 aLinkId link ID

CloseSession(TUint32)

IMPORT_C TInt CloseSession ( TUint32 aSessionId )

Closes MCC session. All links and streams of the session are also closed.

Parameters

TUint32 aSessionId session ID

CodecL(TUint32, TUint32, TUint32)

IMPORT_C CMccCodecInformation * CodecL ( TUint32 aSessionId,
TUint32 aLinkId,
TUint32 aStreamId
)

Gets current codec used in a given stream.

Parameters

TUint32 aSessionId session ID
TUint32 aLinkId Link ID
TUint32 aStreamId Stream ID

ConstructL(MMccCtrlObserver &)

void ConstructL ( MMccCtrlObserver & aObserver ) [private]

By default Symbian 2nd phase constructor is private.

Parameters

MMccCtrlObserver & aObserver

CreateLink(TUint32, TInt, TUint32 &, TMccNetSettings &)

IMPORT_C TInt CreateLink ( TUint32 aSessionId,
TInt aLinkType,
TUint32 & aLinkId,
TMccNetSettings & aNetSettings
)

Creates a new MCC link with a remote participant. Link creates new RTP session with given network settings.

Parameters

TUint32 aSessionId session ID
TInt aLinkType Defines is stream Up- or Downlink
TUint32 & aLinkId ID of new link
TMccNetSettings & aNetSettings network settings for the link

CreateSession(TUint32 &)

IMPORT_C TInt CreateSession ( TUint32 & aSessionId )

Creates a new MCC session. The session is needed to create links and streams into MCC. A single session may have any number of links.

Parameters

TUint32 & aSessionId

CreateStream(TUint32, TUint32, TUint32 &, TInt, CMccCodecInformation &)

IMPORT_C TInt CreateStream ( TUint32 aSessionId,
TUint32 aLinkId,
TUint32 & aStreamId,
TInt aStreamType,
CMccCodecInformation & aCodecInformation
)

Creates a stream into a MCC link. Constructs the datapath for stream, but no media resources reserved yet.

Parameters

TUint32 aSessionId session where stream is created to
TUint32 aLinkId link ID where stream is created to
TUint32 & aStreamId Stream ID for the stream created.
TInt aStreamType type of the stream
CMccCodecInformation & aCodecInformation Codec information for the stream.

DeleteStream(TUint32, TUint32, TUint32)

IMPORT_C TInt DeleteStream ( TUint32 aSessionId,
TUint32 aLinkId,
TUint32 aStreamId
)

Deletes media stream in a given session.

Parameters

TUint32 aSessionId session where stream belongs to
TUint32 aLinkId link ID
TUint32 aStreamId Stream ID identifying stream to be deleted

DisableViewFinder()

TInt DisableViewFinder ( ) [private]

EnableViewFinder(const TDesC8 &)

TInt EnableViewFinder ( const TDesC8 & aParam ) [private]

Parameters

const TDesC8 & aParam

EndpointInfoMatch(const TMccEndpointInfo &, const TMccEndpointInfo &)

TBool EndpointInfoMatch ( const TMccEndpointInfo & aInfo1,
const TMccEndpointInfo & aInfo2
) [private, static]

Parameters

const TMccEndpointInfo & aInfo1
const TMccEndpointInfo & aInfo2

FindEndpointInfo(TUint32, TInt &)

TMMFMessageDestination FindEndpointInfo ( TUint32 aEndpointId,
TInt & aError
) [private]

Parameters

TUint32 aEndpointId
TInt & aError

GetBundles(TUint32, RArray< TMccStreamBundle > &)

IMPORT_C TInt GetBundles ( TUint32 aSessionId,
RArray < TMccStreamBundle > & aBundles
)

Get the reference count of given sink or source.

Parameters

TUint32 aSessionId session where stream belongs to
RArray < TMccStreamBundle > & aBundles an array of bundles in given session.

GetCameraInfoL(TInt)

TCameraInfo GetCameraInfoL ( TInt aDeviceIndex ) [private]

Parameters

TInt aDeviceIndex

GetCameraParameter(TUint32, TInt &)

TInt GetCameraParameter ( TUint32 aParam,
TInt & aVal
) [private]

Parameters

TUint32 aParam
TInt & aVal

GetCameraParameter(TUint32, TReal &)

TInt GetCameraParameter ( TUint32 aParam,
TReal & aVal
) [private]

Parameters

TUint32 aParam
TReal & aVal

GetCapabilities(RPointerArray< CMccCodecInformation > &)

IMPORT_C TInt GetCapabilities ( RPointerArray < CMccCodecInformation > & aCapabilities ) const

Returns array of supported codecs in the system with their default values. Note that data that the aCapabilities contains before calling this function will be lost during the excecution of this function. Note also that the client is responsible for the destruction of the objects contained in the parameter array.

Parameters

RPointerArray < CMccCodecInformation > & aCapabilities Codec capabilities

GetCapabilities(const TUid, TInt, const TDesC8 &, RPointerArray< CMccCodecInformation > &)

IMPORT_C TInt GetCapabilities ( const TUid aType,
TInt aStreamType,
const TDesC8 & aParam,
RPointerArray < CMccCodecInformation > & aCapabilities
)

Returns array of supported codecs of specific sink or source. Note that data that the aCapabilities contains before calling this function will be lost during the excecution of this function. Note also that the client is responsible for the destruction of the objects contained in the parameter array.

Parameters

const TUid aType
TInt aStreamType type of the stream
const TDesC8 & aParam
RPointerArray < CMccCodecInformation > & aCapabilities Codec capabilities

GetController(RMMFController &)

void GetController ( RMMFController & aController )
Returns the reference to handle to controller plugin which interface use for sending custom commands. Client representation of a controller plugin for the Multimedia Framework.
Since
Series 60 3.2

Parameters

RMMFController & aController Controller.

GetEndpointParameter(TUint32, TUint32, TUint32, TUint32, TUint32, TDes8 &)

TInt GetEndpointParameter ( TUint32 aParam,
TUint32 aSessionId,
TUint32 aLinkId,
TUint32 aStreamId,
TUint32 aEndPointId,
TDes8 & aVal
) [private]

Parameters

TUint32 aParam
TUint32 aSessionId
TUint32 aLinkId
TUint32 aStreamId
TUint32 aEndPointId
TDes8 & aVal

GetGain(TInt &)

TInt GetGain ( TInt & aGain ) const [private]

Parameters

TInt & aGain

GetNumOfCamerasL()

TInt GetNumOfCamerasL ( ) [private]

GetParameter(TUint32, TUint32, TUint32, TUint32, TUint32, TDes8 &)

IMPORT_C TInt GetParameter ( TUint32 aSessionId,
TUint32 aLinkId,
TUint32 aStreamId,
TUint32 aEndpointId,
TUint32 aParam,
TDes8 & aVal
)

Gets sink or source parameter

Parameters

TUint32 aSessionId session where sink or source belongs to
TUint32 aLinkId link ID where sink or source belongs to
TUint32 aStreamId stream ID where sink or source belongs to
TUint32 aEndpointId endpoint ID identifying sink or source.
TUint32 aParam a parameter to get
TDes8 & aVal on return will contain parameter value in TPkgBuf structure

GetSSRC(TUint32, TUint32, TUint32, TUint32, TUint32 &)

IMPORT_C TInt GetSSRC ( TUint32 aSessionId,
TUint32 aLinkId,
TUint32 aStreamId,
TUint32 aEndpointId,
TUint32 & aSSRC
)

Get Synchronization source identifier.

Parameters

TUint32 aSessionId session ID
TUint32 aLinkId Link ID
TUint32 aStreamId Stream ID
TUint32 aEndpointId ID identifying endpoint of the stream.
TUint32 & aSSRC SSRC value

GetSupportedBitrates(TUint32, TUint32, TUint32, RArray< TUint > &)

TInt GetSupportedBitrates ( TUint32 aSessionId,
TUint32 aLinkId,
TUint32 aStreamId,
RArray < TUint > & aBitrates
) [private]

Gets supported bit rates from the codec of the specified stream

Parameters

TUint32 aSessionId
TUint32 aLinkId
TUint32 aStreamId
RArray < TUint > & aBitrates

GetSupportedCodecs(RArray< TFourCC > &)

TInt GetSupportedCodecs ( RArray < TFourCC > & aCodecs )

Get supported codecs by the system. Certain sinks and sources however may have limitations on which codecs they support, hence all these codecs may not allowed in all streams.

Parameters

RArray < TFourCC > & aCodecs An array to be filled with FourCC codes

GetViewFinderSettings(TUint32, TUint32, TDes8 &)

TInt GetViewFinderSettings ( TUint32 aParam,
TUint32 aEndPointId,
TDes8 & aVal
) [private]

Parameters

TUint32 aParam
TUint32 aEndPointId
TDes8 & aVal

LinkExists(TUint32, TUint32 &, const TMccNetSettings &)

IMPORT_C TBool LinkExists ( TUint32 aSessionId,
TUint32 & aLinkId,
const TMccNetSettings & aNetSettings
)

Checks if link already exists based on local port

Parameters

TUint32 aSessionId session ID
TUint32 & aLinkId ID of the link
const TMccNetSettings & aNetSettings network settings for the link

MaxGain(TUint32, TUint32, TUint32, TInt &)

TInt MaxGain ( TUint32 aSessionId,
TUint32 aLinkId,
TUint32 aStreamId,
TInt & aMaxGain
) [private]

Parameters

TUint32 aSessionId
TUint32 aLinkId
TUint32 aStreamId
TInt & aMaxGain

MaxVolume(TUint32, TUint32, TUint32, TInt &)

TInt MaxVolume ( TUint32 aSessionId,
TUint32 aLinkId,
TUint32 aStreamId,
TInt & aMaxVolume
) [private]

Parameters

TUint32 aSessionId
TUint32 aLinkId
TUint32 aStreamId
TInt & aMaxVolume

MediaQualityRequest(const TMccMediaQualityConfig &)

IMPORT_C TInt MediaQualityRequest ( const TMccMediaQualityConfig & aConfig )
Requests media quality reports from an endpoint. This request is synchronous. When given media quality level triggers in specified endpoint the client receives media quality report via asynchronous event. If the given config is not valid, KErrArgument is returned. The request can be cancelled with function CancelMediaQualityRequestL,
Since
Series 60 3.2

Parameters

const TMccMediaQualityConfig & aConfig Media quality request configuration

NewL(MMccCtrlObserver &)

IMPORT_C CMccInterface * NewL ( MMccCtrlObserver & aObserver ) [static]

Two-phased constructor.

Parameters

MMccCtrlObserver & aObserver A callback object to receive and handle event notifications from MCC subsystem.

OpenControllerL(const TUid &)

void OpenControllerL ( const TUid & aControllerUid ) [private]

Open controller.

Parameters

const TUid & aControllerUid Controller uid to open.

PauseStream(TUint32, TUint32, TUint32, TUint32, TBool)

IMPORT_C TInt PauseStream ( TUint32 aSessionId,
TUint32 aLinkId,
TUint32 aStreamId,
TUint32 aEndpointId = 0,
TBool aEnableRTCP = ETrue
)

Pauses media stream in a given session. No RTP packets are sent/received anymore. However, RTCP packets may still be sent and received.

Parameters

TUint32 aSessionId session where stream belongs to
TUint32 aLinkId link ID
TUint32 aStreamId ID identifying stream to be paused
TUint32 aEndpointId = 0 ID identifying endpoint of the stream to be paused. If value 0, both endpoints paused.
TBool aEnableRTCP = ETrue ETrue, if RTCP sent while paused.

PrepareStream(TUint32, TUint32, TUint32, TUint32)

IMPORT_C TInt PrepareStream ( TUint32 aSessionId,
TUint32 aLinkId,
TUint32 aStreamId,
TUint32 aEndpointId = 0
)

Prepares a stream so that it is ready to be started. Media resources are reserved and RTP stream is created.

Parameters

TUint32 aSessionId session where stream belongs to
TUint32 aLinkId link ID where stream belongs to
TUint32 aStreamId ID identifying stream to be prepared
TUint32 aEndpointId = 0 ID identifying endpoint of the stream to be prepared. If value 0, both endpoints prepared.

ReferenceCount(TUint32, TUint32, TUint32, TUint32, TUint &)

IMPORT_C TInt ReferenceCount ( TUint32 aSessionId,
TUint32 aLinkId,
TUint32 aStreamId,
TUint32 aEndpointId,
TUint & aCount
)

Get the reference count of given sink or source.

Parameters

TUint32 aSessionId session where stream belongs to
TUint32 aLinkId link ID
TUint32 aStreamId ID identifying stream to be updated
TUint32 aEndpointId ID identifying endpoint of the stream to be updated.
TUint & aCount number of references using this sink or source.

RemoveBundle(TUint32, TUint32)

IMPORT_C TInt RemoveBundle ( TUint32 aSessionId,
TUint32 aBundleId
)

Get the reference count of given sink or source.

Parameters

TUint32 aSessionId session where stream belongs to
TUint32 aBundleId identifier of the removed bundle.

RemoveDataSink(TUint32, TUint32, TUint32, TUint32)

IMPORT_C TInt RemoveDataSink ( TUint32 aSessionId,
TUint32 aLinkId,
TUint32 aStreamId,
TUint32 aEndpointId
)

Removes sink from MCC.

Parameters

TUint32 aSessionId session where stream belongs to
TUint32 aLinkId link ID
TUint32 aStreamId ID identifying stream to be updated
TUint32 aEndpointId ID identifying endpoint of the stream to be updated.

RemoveDataSource(TUint32, TUint32, TUint32, TUint32)

IMPORT_C TInt RemoveDataSource ( TUint32 aSessionId,
TUint32 aLinkId,
TUint32 aStreamId,
TUint32 aEndpointId
)

Removes source from MCC.

Parameters

TUint32 aSessionId session where stream belongs to
TUint32 aLinkId link ID
TUint32 aStreamId ID identifying stream to be updated
TUint32 aEndpointId ID identifying endpoint of the stream to be updated.

RemoveEndpointInfo(TUint32)

TInt RemoveEndpointInfo ( TUint32 aEndpointId ) [private]

Parameters

TUint32 aEndpointId

ResumeStream(TUint32, TUint32, TUint32, TUint32, TBool)

IMPORT_C TInt ResumeStream ( TUint32 aSessionId,
TUint32 aLinkId,
TUint32 aStreamId,
TUint32 aEndpointId = 0,
TBool aEnableRTCP = ETrue
)

Resumes paused media stream in a given session.

Parameters

TUint32 aSessionId session where stream belongs to
TUint32 aLinkId link ID
TUint32 aStreamId Stream ID identifying stream to be resumed
TUint32 aEndpointId = 0 ID identifying endpoint of the stream to be resumed. If value 0, both endpoints resumed.
TBool aEnableRTCP = ETrue ETrue, if RTCP sent while playing.

Reuse(TUint32, TUint32, TUint32, TUint32)

IMPORT_C TInt Reuse ( TUint32 aSessionId,
TUint32 aLinkId,
TUint32 aStreamId,
TUint32 aEndpointId
)

Reuses sink or source of the stream. Reused sink or source may be simultaneously shared by two or more stream. It is also possible,that only one stream can use it at a time. User must later call CreateStream to connect this sink or source to some stream.

Parameters

TUint32 aSessionId session where stream belongs to
TUint32 aLinkId link ID
TUint32 aStreamId ID identifying stream to be updated
TUint32 aEndpointId ID identifying endpoint of the stream to be reused.

SendMediaSignalL(const TMccEvent &)

IMPORT_C void SendMediaSignalL ( const TMccEvent & aEvent )

Sends media signal (e.g. DTMF,RTCP) to uplink if possible.

Parameters

const TMccEvent & aEvent Event to be sent

SendRTCPAnyData(TUint32, TUint32, TUint32, const TDesC8 &)

TInt SendRTCPAnyData ( TUint32 aSessionId,
TUint32 aLinkId,
TUint32 aStreamId,
const TDesC8 & aData
) [private]

Parameters

TUint32 aSessionId
TUint32 aLinkId
TUint32 aStreamId
const TDesC8 & aData

SendRTCPReceiverReport(TUint32, TUint32, TUint32)

TInt SendRTCPReceiverReport ( TUint32 aSessionId,
TUint32 aLinkId,
TUint32 aStreamId
) [private]

Parameters

TUint32 aSessionId
TUint32 aLinkId
TUint32 aStreamId

SendRTCPSenderReport(TUint32, TUint32, TUint32)

TInt SendRTCPSenderReport ( TUint32 aSessionId,
TUint32 aLinkId,
TUint32 aStreamId
) [private]

Parameters

TUint32 aSessionId
TUint32 aLinkId
TUint32 aStreamId

SetAudioRouting(TUint32, TUint32, TUint32, TUint32)

TInt SetAudioRouting ( TUint32 aSessionId,
TUint32 aLinkId,
TUint32 aStreamId,
TUint32 aRoutingDestination
) [private]

Parameters

TUint32 aSessionId
TUint32 aLinkId
TUint32 aStreamId
TUint32 aRoutingDestination

SetBalance(TUint32, TUint32, TUint32, TInt, TMccDevice)

TInt SetBalance ( TUint32 aSessionId,
TUint32 aLinkId,
TUint32 aStreamId,
TInt aBalance,
TMccDevice aStreamType
) [private]

Parameters

TUint32 aSessionId
TUint32 aLinkId
TUint32 aStreamId
TInt aBalance
TMccDevice aStreamType

SetCameraParameter(TUint32, TInt)

TInt SetCameraParameter ( TUint32 aParam,
TInt aVal
) [private]

Parameters

TUint32 aParam
TInt aVal

SetCameraParameter(TUint32, TReal)

TInt SetCameraParameter ( TUint32 aParam,
TReal aVal
) [private]

Parameters

TUint32 aParam
TReal aVal

SetCodec(TUint32, TUint32, TUint32, CMccCodecInformation &)

IMPORT_C TInt SetCodec ( TUint32 aSessionId,
TUint32 aLinkId,
TUint32 aStreamId,
CMccCodecInformation & aCodecInformation
)

Sets codec to be used in a given stream.

Parameters

TUint32 aSessionId session ID
TUint32 aLinkId Link ID
TUint32 aStreamId Stream ID
CMccCodecInformation & aCodecInformation

SetEndpointParameter(TUint32, TUint32, TUint32, TUint32, TUint32, const TDesC8 &)

TInt SetEndpointParameter ( TUint32 aParam,
TUint32 aSessionId,
TUint32 aLinkId,
TUint32 aStreamId,
TUint32 aEndPointId,
const TDesC8 & aVal
) [private]

Parameters

TUint32 aParam
TUint32 aSessionId
TUint32 aLinkId
TUint32 aStreamId
TUint32 aEndPointId
const TDesC8 & aVal

SetGain(TInt)

TInt SetGain ( TInt aGain ) [private]

Parameters

TInt aGain

SetParameter(TUint32, TUint32, TUint32, TUint32, TUint32, const TDesC8 &)

IMPORT_C TInt SetParameter ( TUint32 aSessionId,
TUint32 aLinkId,
TUint32 aStreamId,
TUint32 aEndpointId,
TUint32 aParam,
const TDesC8 & aVal
)

Sets sink or source parameter

Parameters

TUint32 aSessionId session where sink or source belongs to
TUint32 aLinkId link ID where sink or source belongs to
TUint32 aStreamId stream ID where sink or source belongs to
TUint32 aEndpointId endpoint ID identifying sink or source.
TUint32 aParam a parameter to get
const TDesC8 & aVal on return will contain parameter value in TPkgBuf structure

SetRemoteAddress(TUint32, TUint32, const TInetAddr &, TUint)

IMPORT_C TInt SetRemoteAddress ( TUint32 aSessionId,
TUint32 aLinkId,
const TInetAddr & aRemoteAddr,
TUint aRemoteRtcpPort = 0
)

Set remote IP address and port number for a given session.

Parameters

TUint32 aSessionId session ID
TUint32 aLinkId link ID
const TInetAddr & aRemoteAddr Remote address to set
TUint aRemoteRtcpPort = 0 Remote RTCP port to set, if not RTP port +1

SetVolume(TInt)

TInt SetVolume ( TInt aVolume ) [private]

Parameters

TInt aVolume

StartInactivityTimer(TUint32, TUint32, TUint32, TUint32, TUint32)

IMPORT_C TInt StartInactivityTimer ( TUint32 aSessionId,
TUint32 aLinkId,
TUint32 aStreamId,
TUint32 aTimeoutTime,
TUint32 aEndpointId = 0
)

Starts inactivity timer for a stream in a given session. If RTP data is not received in given tive, inactivy event is sent to client. In case of timeout, inactivity timer is stopped. Client may restart the timer is needed.

Parameters

TUint32 aSessionId session where stream belongs to
TUint32 aLinkId link ID
TUint32 aStreamId Stream ID identifying stream
TUint32 aTimeoutTime timeout value in microseconds
TUint32 aEndpointId = 0 ID identifying endpoint of the stream to be monitored.

StartStream(TUint32, TUint32, TUint32, TUint32, TBool, TBool)

IMPORT_C TInt StartStream ( TUint32 aSessionId,
TUint32 aLinkId,
TUint32 aStreamId,
TUint32 aEndpointId = 0,
TBool aPaused = EFalse,
TBool aEnableRTCP = ETrue
)

Starts to send/receive media stream in a given session.

Parameters

TUint32 aSessionId session where stream belongs to
TUint32 aLinkId link ID
TUint32 aStreamId ID identifying stream to be started
TUint32 aEndpointId = 0 ID identifying endpoint of the stream to be started. If value 0, both endpoints started.
TBool aPaused = EFalse ETrue, if stream paused after start
TBool aEnableRTCP = ETrue ETrue, if RTCP sent.

StopInactivityTimer(TUint32, TUint32, TUint32, TUint32)

IMPORT_C TInt StopInactivityTimer ( TUint32 aSessionId,
TUint32 aLinkId,
TUint32 aStreamId,
TUint32 aEndpointId = 0
)

Stops inactivity timer for a stream in a given session.

Parameters

TUint32 aSessionId session where stream belongs to
TUint32 aLinkId link ID
TUint32 aStreamId Stream ID identifying stream
TUint32 aEndpointId = 0 ID identifying endpoint of the stream where monitoring stopped.

StopStream(TUint32, TUint32, TUint32, TUint32)

IMPORT_C TInt StopStream ( TUint32 aSessionId,
TUint32 aLinkId,
TUint32 aStreamId,
TUint32 aEndpointId = 0
)

Stops sending/receiving media stream in a given session.

Parameters

TUint32 aSessionId session where stream belongs to
TUint32 aLinkId link ID
TUint32 aStreamId Stream ID identifying stream to be stopped
TUint32 aEndpointId = 0 ID identifying endpoint of the stream to be stopped. If value 0, both endpoints stopped.

StoreEndpointInfo(TUint32, const TMMFMessageDestination &)

TInt StoreEndpointInfo ( TUint32 aEndpointId,
const TMMFMessageDestination & aHandleInfo
) [private]

Parameters

TUint32 aEndpointId
const TMMFMessageDestination & aHandleInfo

StreamsExists(TUint32, TUint32)

IMPORT_C TBool StreamsExists ( TUint32 aSessionId,
TUint32 aLinkId
)

Checks if link contains streams

Parameters

TUint32 aSessionId session ID
TUint32 aLinkId ID of the link

TranscodeFile(const TDesC8 &, const TDesC8 &, TUint32, TUint32 &, const CMccCodecInformation *, const CMccCodecInformation *)

IMPORT_C TInt TranscodeFile ( const TDesC8 & aSourceFile,
const TDesC8 & aDestFile,
TUint32 aQuality,
TUint32 & aSessionId,
const CMccCodecInformation * aVideoCodec = 0,
const CMccCodecInformation * aAudioCodec = 0
)

Transcodes media file in non-realtime. Progress of transcoding can be monitored through MMccCtrlObserver::MccEventReceived .

Parameters

const TDesC8 & aSourceFile source file for transcoding
const TDesC8 & aDestFile destination file for transcoding
TUint32 aQuality requested quality for transcoding
TUint32 & aSessionId session identifier for transcoding
const CMccCodecInformation * aVideoCodec = 0 requested video parameters for transcoding, overrides aQuality parameter. Ownership is not transferred.
const CMccCodecInformation * aAudioCodec = 0 requested audio parameters for transcoding, overrides aQuality parameter. Ownership is not transferred.

UpdateDataSink(TUint32, TUint32, TUint32, TUint32, const TDesC8 &)

IMPORT_C TInt UpdateDataSink ( TUint32 aSessionId,
TUint32 aLinkId,
TUint32 aStreamId,
TUint32 aEndpointId,
const TDesC8 & aParam
)

Updates sink of the stream.

Parameters

TUint32 aSessionId session where stream belongs to
TUint32 aLinkId link ID
TUint32 aStreamId ID identifying stream to be updated
TUint32 aEndpointId ID identifying endpoint of the stream to be updated.
const TDesC8 & aParam initialization parameters of the sink.

UpdateDataSource(TUint32, TUint32, TUint32, TUint32, const TDesC8 &)

IMPORT_C TInt UpdateDataSource ( TUint32 aSessionId,
TUint32 aLinkId,
TUint32 aStreamId,
TUint32 aEndpointId,
const TDesC8 & aParam
)

Updates source of the stream.

Parameters

TUint32 aSessionId session where stream belongs to
TUint32 aLinkId link ID
TUint32 aStreamId ID identifying stream to be updated
TUint32 aEndpointId ID identifying endpoint of the stream to be updated.
const TDesC8 & aParam initialization parameters of the source.

Volume(TInt &)

TInt Volume ( TInt & aVolume ) const [private]

Parameters

TInt & aVolume

Member Data Documentation

RMMFAudioPlayDeviceCustomCommands iAudioPlayDeviceCustomCommands

RMMFAudioPlayDeviceCustomCommands iAudioPlayDeviceCustomCommands [private]

RMMFAudioRecordDeviceCustomCommands iAudioRecordDeviceCustomCommands

RMMFAudioRecordDeviceCustomCommands iAudioRecordDeviceCustomCommands [private]

RPointerArray< CMccCodecInformation > iCodecInformation

RPointerArray < CMccCodecInformation > iCodecInformation [private]

RMMFController iController

RMMFController iController [private]

RArray< TMccEndpointInfo > iEndpointInfos

RArray < TMccEndpointInfo > iEndpointInfos [private]

CMccEvent * iMccEvent

CMccEvent * iMccEvent [private]

TMMFMessageDestinationPckg iMessageDest

TMMFMessageDestinationPckg iMessageDest [private]

TAny * iReserved1

TAny * iReserved1 [private]

TInt iReserved2

TInt iReserved2 [private]