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 TIntAddBundle(TUint32, TMccStreamBundle &, TUint32 &)
IMPORT_C TIntAddDataSink(const TUid, const TDesC8 &, TUint32 &)
IMPORT_C TIntAddDataSource(const TUid, const TDesC8 &, TUint32 &)
IMPORT_C TIntCancelMediaQualityRequest(const TMccMediaQualityConfig &)
IMPORT_C TIntCancelTranscodeFile(TUint32)
IMPORT_C TIntCloseLink(TUint32, TUint32)
IMPORT_C TIntCloseSession(TUint32)
IMPORT_C CMccCodecInformation *CodecL(TUint32, TUint32, TUint32)
IMPORT_C TIntCreateLink(TUint32, TInt, TUint32 &, TMccNetSettings &)
IMPORT_C TIntCreateSession(TUint32 &)
IMPORT_C TIntCreateStream(TUint32, TUint32, TUint32 &, TInt, CMccCodecInformation &)
IMPORT_C TIntDeleteStream(TUint32, TUint32, TUint32)
IMPORT_C TIntGetBundles(TUint32, RArray< TMccStreamBundle > &)
IMPORT_C TIntGetCapabilities(RPointerArray< CMccCodecInformation > &)
IMPORT_C TIntGetCapabilities(const TUid, TInt, const TDesC8 &, RPointerArray< CMccCodecInformation > &)
voidGetController(RMMFController &)
IMPORT_C TIntGetParameter(TUint32, TUint32, TUint32, TUint32, TUint32, TDes8 &)
IMPORT_C TIntGetSSRC(TUint32, TUint32, TUint32, TUint32, TUint32 &)
TInt GetSupportedCodecs(RArray< TFourCC > &)
IMPORT_C TBoolLinkExists(TUint32, TUint32 &, const TMccNetSettings &)
IMPORT_C TIntMediaQualityRequest(const TMccMediaQualityConfig &)
IMPORT_C CMccInterface *NewL(MMccCtrlObserver &)
IMPORT_C TIntPauseStream(TUint32, TUint32, TUint32, TUint32, TBool)
IMPORT_C TIntPrepareStream(TUint32, TUint32, TUint32, TUint32)
IMPORT_C TIntReferenceCount(TUint32, TUint32, TUint32, TUint32, TUint &)
IMPORT_C TIntRemoveBundle(TUint32, TUint32)
IMPORT_C TIntRemoveDataSink(TUint32, TUint32, TUint32, TUint32)
IMPORT_C TIntRemoveDataSource(TUint32, TUint32, TUint32, TUint32)
IMPORT_C TIntResumeStream(TUint32, TUint32, TUint32, TUint32, TBool)
IMPORT_C TIntReuse(TUint32, TUint32, TUint32, TUint32)
IMPORT_C voidSendMediaSignalL(const TMccEvent &)
IMPORT_C TIntSetCodec(TUint32, TUint32, TUint32, CMccCodecInformation &)
IMPORT_C TIntSetParameter(TUint32, TUint32, TUint32, TUint32, TUint32, const TDesC8 &)
IMPORT_C TIntSetRemoteAddress(TUint32, TUint32, const TInetAddr &, TUint)
IMPORT_C TIntStartInactivityTimer(TUint32, TUint32, TUint32, TUint32, TUint32)
IMPORT_C TIntStartStream(TUint32, TUint32, TUint32, TUint32, TBool, TBool)
IMPORT_C TIntStopInactivityTimer(TUint32, TUint32, TUint32, TUint32)
IMPORT_C TIntStopStream(TUint32, TUint32, TUint32, TUint32)
IMPORT_C TBoolStreamsExists(TUint32, TUint32)
IMPORT_C TIntTranscodeFile(const TDesC8 &, const TDesC8 &, TUint32, TUint32 &, const CMccCodecInformation *, const CMccCodecInformation *)
IMPORT_C TIntUpdateDataSink(TUint32, TUint32, TUint32, TUint32, const TDesC8 &)
IMPORT_C TIntUpdateDataSource(TUint32, TUint32, TUint32, TUint32, const TDesC8 &)
Private Member Functions
CMccInterface()
TInt AudioRouting(TUint32, TUint32, TUint32, TUint32 &)
TInt Balance(TUint32, TUint32, TUint32, TInt &, TMccDevice)
voidCapabilitiesL()
voidConstructL(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 &)
voidOpenControllerL(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 TIntAddBundle(TUint32aSessionId,
TMccStreamBundle &aBundle,
TUint32 &aBundleId
)

Get the reference count of given sink or source.

Parameters

TUint32 aSessionIdsession where stream belongs to
TMccStreamBundle & aBundlenew bundle to be added in the session.
TUint32 & aBundleIdidentifier of the added bundle on return.

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

IMPORT_C TIntAddDataSink(const TUidaSinkType,
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 aSinkTypetype identifier of the sink.
const TDesC8 & aParaminitialization parameters of the sink.
TUint32 & aEndpointIdidenfier of the created sink on return.

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

IMPORT_C TIntAddDataSource(const TUidaSourceType,
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 aSourceTypetype identifier of the source.
const TDesC8 & aParaminitialization parameters of the source.
TUint32 & aEndpointIdidenfier of the created source on return.

AudioRouting(TUint32, TUint32, TUint32, TUint32 &)

TInt AudioRouting(TUint32aSessionId,
TUint32aLinkId,
TUint32aStreamId,
TUint32 &aRoutingDestination
)[private]

Parameters

TUint32 aSessionId
TUint32 aLinkId
TUint32 aStreamId
TUint32 & aRoutingDestination

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

TInt Balance(TUint32aSessionId,
TUint32aLinkId,
TUint32aStreamId,
TInt &aBalance,
TMccDeviceaStreamType
)[private]

Parameters

TUint32 aSessionId
TUint32 aLinkId
TUint32 aStreamId
TInt & aBalance
TMccDevice aStreamType

CancelMediaQualityRequest(const TMccMediaQualityConfig &)

IMPORT_C TIntCancelMediaQualityRequest(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 & aConfigConfiguration to find a outstanding media quality request

CancelTranscodeFile(TUint32)

IMPORT_C TIntCancelTranscodeFile(TUint32aSessionId)

Cancels transcoding of media file.

Parameters

TUint32 aSessionIdsession identifier for transcoding

CapabilitiesL()

voidCapabilitiesL()[private]

Gets supported codecs from controller.

CloseLink(TUint32, TUint32)

IMPORT_C TIntCloseLink(TUint32aSessionId,
TUint32aLinkId
)

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

Parameters

TUint32 aSessionIdsession ID
TUint32 aLinkIdlink ID

CloseSession(TUint32)

IMPORT_C TIntCloseSession(TUint32aSessionId)

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

Parameters

TUint32 aSessionIdsession ID

CodecL(TUint32, TUint32, TUint32)

IMPORT_C CMccCodecInformation *CodecL(TUint32aSessionId,
TUint32aLinkId,
TUint32aStreamId
)

Gets current codec used in a given stream.

Parameters

TUint32 aSessionIdsession ID
TUint32 aLinkIdLink ID
TUint32 aStreamIdStream ID

ConstructL(MMccCtrlObserver &)

voidConstructL(MMccCtrlObserver &aObserver)[private]

By default Symbian 2nd phase constructor is private.

Parameters

MMccCtrlObserver & aObserver

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

IMPORT_C TIntCreateLink(TUint32aSessionId,
TIntaLinkType,
TUint32 &aLinkId,
TMccNetSettings &aNetSettings
)

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

Parameters

TUint32 aSessionIdsession ID
TInt aLinkTypeDefines is stream Up- or Downlink
TUint32 & aLinkIdID of new link
TMccNetSettings & aNetSettingsnetwork settings for the link

CreateSession(TUint32 &)

IMPORT_C TIntCreateSession(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 TIntCreateStream(TUint32aSessionId,
TUint32aLinkId,
TUint32 &aStreamId,
TIntaStreamType,
CMccCodecInformation &aCodecInformation
)

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

Parameters

TUint32 aSessionIdsession where stream is created to
TUint32 aLinkIdlink ID where stream is created to
TUint32 & aStreamIdStream ID for the stream created.
TInt aStreamTypetype of the stream
CMccCodecInformation & aCodecInformationCodec information for the stream.

DeleteStream(TUint32, TUint32, TUint32)

IMPORT_C TIntDeleteStream(TUint32aSessionId,
TUint32aLinkId,
TUint32aStreamId
)

Deletes media stream in a given session.

Parameters

TUint32 aSessionIdsession where stream belongs to
TUint32 aLinkIdlink ID
TUint32 aStreamIdStream 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(TUint32aEndpointId,
TInt &aError
)[private]

Parameters

TUint32 aEndpointId
TInt & aError

GetBundles(TUint32, RArray< TMccStreamBundle > &)

IMPORT_C TIntGetBundles(TUint32aSessionId,
RArray< TMccStreamBundle > &aBundles
)

Get the reference count of given sink or source.

Parameters

TUint32 aSessionIdsession where stream belongs to
RArray< TMccStreamBundle > & aBundlesan array of bundles in given session.

GetCameraInfoL(TInt)

TCameraInfo GetCameraInfoL(TIntaDeviceIndex)[private]

Parameters

TInt aDeviceIndex

GetCameraParameter(TUint32, TInt &)

TInt GetCameraParameter(TUint32aParam,
TInt &aVal
)[private]

Parameters

TUint32 aParam
TInt & aVal

GetCameraParameter(TUint32, TReal &)

TInt GetCameraParameter(TUint32aParam,
TReal &aVal
)[private]

Parameters

TUint32 aParam
TReal & aVal

GetCapabilities(RPointerArray< CMccCodecInformation > &)

IMPORT_C TIntGetCapabilities(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 > & aCapabilitiesCodec capabilities

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

IMPORT_C TIntGetCapabilities(const TUidaType,
TIntaStreamType,
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 aStreamTypetype of the stream
const TDesC8 & aParam
RPointerArray< CMccCodecInformation > & aCapabilitiesCodec capabilities

GetController(RMMFController &)

voidGetController(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 & aControllerController.

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

TInt GetEndpointParameter(TUint32aParam,
TUint32aSessionId,
TUint32aLinkId,
TUint32aStreamId,
TUint32aEndPointId,
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 TIntGetParameter(TUint32aSessionId,
TUint32aLinkId,
TUint32aStreamId,
TUint32aEndpointId,
TUint32aParam,
TDes8 &aVal
)

Gets sink or source parameter

Parameters

TUint32 aSessionIdsession where sink or source belongs to
TUint32 aLinkIdlink ID where sink or source belongs to
TUint32 aStreamIdstream ID where sink or source belongs to
TUint32 aEndpointIdendpoint ID identifying sink or source.
TUint32 aParama parameter to get
TDes8 & aValon return will contain parameter value in TPkgBuf structure

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

IMPORT_C TIntGetSSRC(TUint32aSessionId,
TUint32aLinkId,
TUint32aStreamId,
TUint32aEndpointId,
TUint32 &aSSRC
)

Get Synchronization source identifier.

Parameters

TUint32 aSessionIdsession ID
TUint32 aLinkIdLink ID
TUint32 aStreamIdStream ID
TUint32 aEndpointIdID identifying endpoint of the stream.
TUint32 & aSSRCSSRC value

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

TInt GetSupportedBitrates(TUint32aSessionId,
TUint32aLinkId,
TUint32aStreamId,
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 > & aCodecsAn array to be filled with FourCC codes

GetViewFinderSettings(TUint32, TUint32, TDes8 &)

TInt GetViewFinderSettings(TUint32aParam,
TUint32aEndPointId,
TDes8 &aVal
)[private]

Parameters

TUint32 aParam
TUint32 aEndPointId
TDes8 & aVal

LinkExists(TUint32, TUint32 &, const TMccNetSettings &)

IMPORT_C TBoolLinkExists(TUint32aSessionId,
TUint32 &aLinkId,
const TMccNetSettings &aNetSettings
)

Checks if link already exists based on local port

Parameters

TUint32 aSessionIdsession ID
TUint32 & aLinkIdID of the link
const TMccNetSettings & aNetSettingsnetwork settings for the link

MaxGain(TUint32, TUint32, TUint32, TInt &)

TInt MaxGain(TUint32aSessionId,
TUint32aLinkId,
TUint32aStreamId,
TInt &aMaxGain
)[private]

Parameters

TUint32 aSessionId
TUint32 aLinkId
TUint32 aStreamId
TInt & aMaxGain

MaxVolume(TUint32, TUint32, TUint32, TInt &)

TInt MaxVolume(TUint32aSessionId,
TUint32aLinkId,
TUint32aStreamId,
TInt &aMaxVolume
)[private]

Parameters

TUint32 aSessionId
TUint32 aLinkId
TUint32 aStreamId
TInt & aMaxVolume

MediaQualityRequest(const TMccMediaQualityConfig &)

IMPORT_C TIntMediaQualityRequest(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 & aConfigMedia quality request configuration

NewL(MMccCtrlObserver &)

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

Two-phased constructor.

Parameters

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

OpenControllerL(const TUid &)

voidOpenControllerL(const TUid &aControllerUid)[private]

Open controller.

Parameters

const TUid & aControllerUidController uid to open.

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

IMPORT_C TIntPauseStream(TUint32aSessionId,
TUint32aLinkId,
TUint32aStreamId,
TUint32aEndpointId = 0,
TBoolaEnableRTCP = 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 aSessionIdsession where stream belongs to
TUint32 aLinkIdlink ID
TUint32 aStreamIdID identifying stream to be paused
TUint32 aEndpointId = 0ID identifying endpoint of the stream to be paused. If value 0, both endpoints paused.
TBool aEnableRTCP = ETrueETrue, if RTCP sent while paused.

PrepareStream(TUint32, TUint32, TUint32, TUint32)

IMPORT_C TIntPrepareStream(TUint32aSessionId,
TUint32aLinkId,
TUint32aStreamId,
TUint32aEndpointId = 0
)

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

Parameters

TUint32 aSessionIdsession where stream belongs to
TUint32 aLinkIdlink ID where stream belongs to
TUint32 aStreamIdID identifying stream to be prepared
TUint32 aEndpointId = 0ID identifying endpoint of the stream to be prepared. If value 0, both endpoints prepared.

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

IMPORT_C TIntReferenceCount(TUint32aSessionId,
TUint32aLinkId,
TUint32aStreamId,
TUint32aEndpointId,
TUint &aCount
)

Get the reference count of given sink or source.

Parameters

TUint32 aSessionIdsession where stream belongs to
TUint32 aLinkIdlink ID
TUint32 aStreamIdID identifying stream to be updated
TUint32 aEndpointIdID identifying endpoint of the stream to be updated.
TUint & aCountnumber of references using this sink or source.

RemoveBundle(TUint32, TUint32)

IMPORT_C TIntRemoveBundle(TUint32aSessionId,
TUint32aBundleId
)

Get the reference count of given sink or source.

Parameters

TUint32 aSessionIdsession where stream belongs to
TUint32 aBundleIdidentifier of the removed bundle.

RemoveDataSink(TUint32, TUint32, TUint32, TUint32)

IMPORT_C TIntRemoveDataSink(TUint32aSessionId,
TUint32aLinkId,
TUint32aStreamId,
TUint32aEndpointId
)

Removes sink from MCC.

Parameters

TUint32 aSessionIdsession where stream belongs to
TUint32 aLinkIdlink ID
TUint32 aStreamIdID identifying stream to be updated
TUint32 aEndpointIdID identifying endpoint of the stream to be updated.

RemoveDataSource(TUint32, TUint32, TUint32, TUint32)

IMPORT_C TIntRemoveDataSource(TUint32aSessionId,
TUint32aLinkId,
TUint32aStreamId,
TUint32aEndpointId
)

Removes source from MCC.

Parameters

TUint32 aSessionIdsession where stream belongs to
TUint32 aLinkIdlink ID
TUint32 aStreamIdID identifying stream to be updated
TUint32 aEndpointIdID identifying endpoint of the stream to be updated.

RemoveEndpointInfo(TUint32)

TInt RemoveEndpointInfo(TUint32aEndpointId)[private]

Parameters

TUint32 aEndpointId

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

IMPORT_C TIntResumeStream(TUint32aSessionId,
TUint32aLinkId,
TUint32aStreamId,
TUint32aEndpointId = 0,
TBoolaEnableRTCP = ETrue
)

Resumes paused media stream in a given session.

Parameters

TUint32 aSessionIdsession where stream belongs to
TUint32 aLinkIdlink ID
TUint32 aStreamIdStream ID identifying stream to be resumed
TUint32 aEndpointId = 0ID identifying endpoint of the stream to be resumed. If value 0, both endpoints resumed.
TBool aEnableRTCP = ETrueETrue, if RTCP sent while playing.

Reuse(TUint32, TUint32, TUint32, TUint32)

IMPORT_C TIntReuse(TUint32aSessionId,
TUint32aLinkId,
TUint32aStreamId,
TUint32aEndpointId
)

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 aSessionIdsession where stream belongs to
TUint32 aLinkIdlink ID
TUint32 aStreamIdID identifying stream to be updated
TUint32 aEndpointIdID identifying endpoint of the stream to be reused.

SendMediaSignalL(const TMccEvent &)

IMPORT_C voidSendMediaSignalL(const TMccEvent &aEvent)

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

Parameters

const TMccEvent & aEventEvent to be sent

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

TInt SendRTCPAnyData(TUint32aSessionId,
TUint32aLinkId,
TUint32aStreamId,
const TDesC8 &aData
)[private]

Parameters

TUint32 aSessionId
TUint32 aLinkId
TUint32 aStreamId
const TDesC8 & aData

SendRTCPReceiverReport(TUint32, TUint32, TUint32)

TInt SendRTCPReceiverReport(TUint32aSessionId,
TUint32aLinkId,
TUint32aStreamId
)[private]

Parameters

TUint32 aSessionId
TUint32 aLinkId
TUint32 aStreamId

SendRTCPSenderReport(TUint32, TUint32, TUint32)

TInt SendRTCPSenderReport(TUint32aSessionId,
TUint32aLinkId,
TUint32aStreamId
)[private]

Parameters

TUint32 aSessionId
TUint32 aLinkId
TUint32 aStreamId

SetAudioRouting(TUint32, TUint32, TUint32, TUint32)

TInt SetAudioRouting(TUint32aSessionId,
TUint32aLinkId,
TUint32aStreamId,
TUint32aRoutingDestination
)[private]

Parameters

TUint32 aSessionId
TUint32 aLinkId
TUint32 aStreamId
TUint32 aRoutingDestination

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

TInt SetBalance(TUint32aSessionId,
TUint32aLinkId,
TUint32aStreamId,
TIntaBalance,
TMccDeviceaStreamType
)[private]

Parameters

TUint32 aSessionId
TUint32 aLinkId
TUint32 aStreamId
TInt aBalance
TMccDevice aStreamType

SetCameraParameter(TUint32, TInt)

TInt SetCameraParameter(TUint32aParam,
TIntaVal
)[private]

Parameters

TUint32 aParam
TInt aVal

SetCameraParameter(TUint32, TReal)

TInt SetCameraParameter(TUint32aParam,
TRealaVal
)[private]

Parameters

TUint32 aParam
TReal aVal

SetCodec(TUint32, TUint32, TUint32, CMccCodecInformation &)

IMPORT_C TIntSetCodec(TUint32aSessionId,
TUint32aLinkId,
TUint32aStreamId,
CMccCodecInformation &aCodecInformation
)

Sets codec to be used in a given stream.

Parameters

TUint32 aSessionIdsession ID
TUint32 aLinkIdLink ID
TUint32 aStreamIdStream ID
CMccCodecInformation & aCodecInformation

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

TInt SetEndpointParameter(TUint32aParam,
TUint32aSessionId,
TUint32aLinkId,
TUint32aStreamId,
TUint32aEndPointId,
const TDesC8 &aVal
)[private]

Parameters

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

SetGain(TInt)

TInt SetGain(TIntaGain)[private]

Parameters

TInt aGain

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

IMPORT_C TIntSetParameter(TUint32aSessionId,
TUint32aLinkId,
TUint32aStreamId,
TUint32aEndpointId,
TUint32aParam,
const TDesC8 &aVal
)

Sets sink or source parameter

Parameters

TUint32 aSessionIdsession where sink or source belongs to
TUint32 aLinkIdlink ID where sink or source belongs to
TUint32 aStreamIdstream ID where sink or source belongs to
TUint32 aEndpointIdendpoint ID identifying sink or source.
TUint32 aParama parameter to get
const TDesC8 & aValon return will contain parameter value in TPkgBuf structure

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

IMPORT_C TIntSetRemoteAddress(TUint32aSessionId,
TUint32aLinkId,
const TInetAddr &aRemoteAddr,
TUintaRemoteRtcpPort = 0
)

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

Parameters

TUint32 aSessionIdsession ID
TUint32 aLinkIdlink ID
const TInetAddr & aRemoteAddrRemote address to set
TUint aRemoteRtcpPort = 0Remote RTCP port to set, if not RTP port +1

SetVolume(TInt)

TInt SetVolume(TIntaVolume)[private]

Parameters

TInt aVolume

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

IMPORT_C TIntStartInactivityTimer(TUint32aSessionId,
TUint32aLinkId,
TUint32aStreamId,
TUint32aTimeoutTime,
TUint32aEndpointId = 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 aSessionIdsession where stream belongs to
TUint32 aLinkIdlink ID
TUint32 aStreamIdStream ID identifying stream
TUint32 aTimeoutTimetimeout value in microseconds
TUint32 aEndpointId = 0ID identifying endpoint of the stream to be monitored.

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

IMPORT_C TIntStartStream(TUint32aSessionId,
TUint32aLinkId,
TUint32aStreamId,
TUint32aEndpointId = 0,
TBoolaPaused = EFalse,
TBoolaEnableRTCP = ETrue
)

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

Parameters

TUint32 aSessionIdsession where stream belongs to
TUint32 aLinkIdlink ID
TUint32 aStreamIdID identifying stream to be started
TUint32 aEndpointId = 0ID identifying endpoint of the stream to be started. If value 0, both endpoints started.
TBool aPaused = EFalseETrue, if stream paused after start
TBool aEnableRTCP = ETrueETrue, if RTCP sent.

StopInactivityTimer(TUint32, TUint32, TUint32, TUint32)

IMPORT_C TIntStopInactivityTimer(TUint32aSessionId,
TUint32aLinkId,
TUint32aStreamId,
TUint32aEndpointId = 0
)

Stops inactivity timer for a stream in a given session.

Parameters

TUint32 aSessionIdsession where stream belongs to
TUint32 aLinkIdlink ID
TUint32 aStreamIdStream ID identifying stream
TUint32 aEndpointId = 0ID identifying endpoint of the stream where monitoring stopped.

StopStream(TUint32, TUint32, TUint32, TUint32)

IMPORT_C TIntStopStream(TUint32aSessionId,
TUint32aLinkId,
TUint32aStreamId,
TUint32aEndpointId = 0
)

Stops sending/receiving media stream in a given session.

Parameters

TUint32 aSessionIdsession where stream belongs to
TUint32 aLinkIdlink ID
TUint32 aStreamIdStream ID identifying stream to be stopped
TUint32 aEndpointId = 0ID identifying endpoint of the stream to be stopped. If value 0, both endpoints stopped.

StoreEndpointInfo(TUint32, const TMMFMessageDestination &)

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

Parameters

TUint32 aEndpointId
const TMMFMessageDestination & aHandleInfo

StreamsExists(TUint32, TUint32)

IMPORT_C TBoolStreamsExists(TUint32aSessionId,
TUint32aLinkId
)

Checks if link contains streams

Parameters

TUint32 aSessionIdsession ID
TUint32 aLinkIdID of the link

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

IMPORT_C TIntTranscodeFile(const TDesC8 &aSourceFile,
const TDesC8 &aDestFile,
TUint32aQuality,
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 & aSourceFilesource file for transcoding
const TDesC8 & aDestFiledestination file for transcoding
TUint32 aQualityrequested quality for transcoding
TUint32 & aSessionIdsession identifier for transcoding
const CMccCodecInformation * aVideoCodec = 0requested video parameters for transcoding, overrides aQuality parameter. Ownership is not transferred.
const CMccCodecInformation * aAudioCodec = 0requested audio parameters for transcoding, overrides aQuality parameter. Ownership is not transferred.

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

IMPORT_C TIntUpdateDataSink(TUint32aSessionId,
TUint32aLinkId,
TUint32aStreamId,
TUint32aEndpointId,
const TDesC8 &aParam
)

Updates sink of the stream.

Parameters

TUint32 aSessionIdsession where stream belongs to
TUint32 aLinkIdlink ID
TUint32 aStreamIdID identifying stream to be updated
TUint32 aEndpointIdID identifying endpoint of the stream to be updated.
const TDesC8 & aParaminitialization parameters of the sink.

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

IMPORT_C TIntUpdateDataSource(TUint32aSessionId,
TUint32aLinkId,
TUint32aStreamId,
TUint32aEndpointId,
const TDesC8 &aParam
)

Updates source of the stream.

Parameters

TUint32 aSessionIdsession where stream belongs to
TUint32 aLinkIdlink ID
TUint32 aStreamIdID identifying stream to be updated
TUint32 aEndpointIdID identifying endpoint of the stream to be updated.
const TDesC8 & aParaminitialization 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]