RMMFVideoRecordControllerCustomCommands Class Reference

#include <mmf/common/mmfstandardcustomcommands.h>

Link against: mmfstandardcustomcommands.lib

class RMMFVideoRecordControllerCustomCommands : public RMMFCustomCommandsBase, public RMMFCustomCommandsBase

Inherits from

Detailed Description

Client class to access functionality specific to a video recorder controller.

The class uses the custom command function of the controller plugin, and removes the necessity

for the client to formulate the custom commands.

Since
7.0s

Constructor & Destructor Documentation

RMMFVideoRecordControllerCustomCommands ( RMMFController & )

IMPORT_CRMMFVideoRecordControllerCustomCommands(RMMFController &aController)

Constructor.

Since
7.0s
Parameters
aControllerThe client side controller object to be used by this custom command interface.

Member Function Documentation

AddMetaDataEntryL ( const CMMFMetaDataEntry & )

IMPORT_C voidAddMetaDataEntryL(const CMMFMetaDataEntry &aNewEntry)const

Adds meta data to the clip.

Since
7.0s
Parameters
aNewEntryThe details of the new entry to be added.
Return Value
One of the system-wide error codes.

GetAudioEnabled ( TBool & )

IMPORT_C TIntGetAudioEnabled(TBool &aEnabled)const

Retrieves whether audio is enabled.

Since
7.0s
Parameters
aEnabledA boolean indicating whether audio is enabled.
Return Value
One of the system-wide error codes.

GetRecordTimeAvailable ( TTimeIntervalMicroSeconds & )

IMPORT_C TIntGetRecordTimeAvailable(TTimeIntervalMicroSeconds &aTime)const

Gets the (possibly estimated) record time left in the clip.

Since
7.0s
Parameters
aTimeThe record time available, in microseconds.
Return Value
One of the system-wide error codes.

GetSupportedSinkAudioTypes ( RArray< TFourCC > & )

IMPORT_C TIntGetSupportedSinkAudioTypes(RArray< TFourCC > &aSupportedDataTypes)const

Gets the supported sink audio types.

Since
7.0s
Parameters
aSupportedDataTypesThe supported data types.

GetSupportedSinkVideoTypes ( CDesC8Array & )

IMPORT_C TIntGetSupportedSinkVideoTypes(CDesC8Array &aDataTypes)const

Gets the supported sink video types.

Since
7.0s
Parameters
aDataTypesThe supported data types.

Prepare ( )

IMPORT_C TIntPrepare()const

Prepares the controller for recording. This should be called before the first attempt to record

with the controller.

Since
7.0s
Return Value
One of the system-wide error codes.

RemoveMetaDataEntry ( TInt )

IMPORT_C TIntRemoveMetaDataEntry(TIntaIndex)const

Removes a meta data entry from the clip.

Since
7.0s
Parameters
aIndexThe ID of the meta data entry to delete.
Return Value
One of the system-wide error codes.

ReplaceMetaDataEntryL ( TInt, const CMMFMetaDataEntry & )

IMPORT_C voidReplaceMetaDataEntryL(TIntaIndex,
const CMMFMetaDataEntry &aNewEntry
)const

Replaces a meta data in the clip.

Since
7.0s
Parameters
aIndexThe ID of the meta data entry to replace.
aNewEntryThe details of the new entry to be added.

SetAudioBitRate ( TInt )

IMPORT_C TIntSetAudioBitRate(TIntaBitRate)const

Sets the audio bit rate.

Since
7.0s
Parameters
aBitRateThe bit rate of the audio stream.
Return Value
One of the system-wide error codes.

SetAudioCodec ( TFourCC )

IMPORT_C TIntSetAudioCodec(TFourCCaAudioCodec)const

Sets the audio codec for recording.

Since
7.0s
Parameters
aAudioCodecThe FourCC code of the audio codec.
Return Value
One of the system-wide error codes.

SetAudioEnabled ( TBool )

IMPORT_C TIntSetAudioEnabled(TBoolaEnable)const

Sets whether audio is enabled.

Since
7.0s
Parameters
aEnableA boolean indicating if audio should be enabled.
Return Value
One of the system-wide error codes.

SetCameraHandle ( TInt )

IMPORT_C TIntSetCameraHandle(TIntaCameraHandle)const

Sets the handle of the camera to use.

Since
7.0s
Parameters
aCameraHandleThe handle of the camera to use.
Return Value
One of the system-wide error codes.

SetMaxFileSize ( TInt )

IMPORT_C TIntSetMaxFileSize(TIntaMaxSize)const

Sets the maximum size of the recorded clip, in bytes.

KMMFNoMaxClipSize which signifies no maximum file size.

Since
7.0s
Parameters
aMaxSizeThe maximum size of the recorded clip, in bytes. This can be called with the parameter
Return Value
One of the system-wide error codes.

SetVideoBitRate ( TInt )

IMPORT_C TIntSetVideoBitRate(TIntaBitRate)const

Sets the video bit rate.

Since
7.0s
Parameters
aBitRateThe bit rate of the video stream.
Return Value
One of the system-wide error codes.

SetVideoCodec ( const TDesC8 & )

IMPORT_C TIntSetVideoCodec(const TDesC8 &aVideoCodec)const

Sets the video codec for recording.

Since
7.0s
Parameters
aVideoCodecThe MIME type of the video codec.
Return Value
One of the system-wide error codes.

SetVideoFormat ( TUid )

IMPORT_C TIntSetVideoFormat(TUidaVideoFormatUid)const

Sets the format for the video to record.

Since
7.0s
Parameters
aVideoFormatUidThe UID of the video format.
Return Value
This method will return with one of the system-wide error codes.

SetVideoFrameSize ( TSize )

IMPORT_C TIntSetVideoFrameSize(TSizeaVideoFrameSize)const

Sets the frame size of the clip.

Since
7.0s
Parameters
aVideoFrameSizeThe frame size, in pixels.
Return Value
One of the system-wide error codes.