CVideoRecorderUtility Class Reference

class CVideoRecorderUtility : public CBase

Records video data.

The class offers a simple interface to record and set meta data and control information for a video clip and save the result to a file, descriptor or URL.

Note: Some video formats also allow the storing of audio data. To accommodate this, this class contains audio functions that can manipulate such data.

While this class is abstract, NewL() constructs, initialises and returns pointers to instances of concrete classes derived from this abstract class. This concrete class is part of the MMF implementation and is private.

7.0s

Inherits from

  • CVideoRecorderUtility
Public Member Functions
~CVideoRecorderUtility()
IMPORT_C voidAddMetaDataEntryL(const CMMFMetaDataEntry &)
IMPORT_C TIntAudioBitRateL()
IMPORT_C TUintAudioChannelsL()
IMPORT_C TBoolAudioEnabledL()
IMPORT_C TUintAudioSampleRateL()
IMPORT_C TFourCCAudioTypeL()
IMPORT_C voidClose()
IMPORT_C const CMMFControllerImplementationInformation &ControllerImplementationInformationL()
IMPORT_C voidCustomCommandAsync(const TMMFMessageDestinationPckg &, TInt, const TDesC8 &, const TDesC8 &, TDes8 &, TRequestStatus &)
IMPORT_C voidCustomCommandAsync(const TMMFMessageDestinationPckg &, TInt, const TDesC8 &, const TDesC8 &, TRequestStatus &)
IMPORT_C TIntCustomCommandSync(const TMMFMessageDestinationPckg &, TInt, const TDesC8 &, const TDesC8 &, TDes8 &)
IMPORT_C TIntCustomCommandSync(const TMMFMessageDestinationPckg &, TInt, const TDesC8 &, const TDesC8 &)
IMPORT_C TTimeIntervalMicroSecondsDurationL()
IMPORT_C TIntGainL()
IMPORT_C voidGetPixelAspectRatioL(TVideoAspectRatio &)
IMPORT_C voidGetPriorityL(TInt &, TMdaPriorityPreference &)
IMPORT_C voidGetSupportedAudioChannelsL(RArray< TUint > &)
IMPORT_C voidGetSupportedAudioSampleRatesL(RArray< TUint > &)
IMPORT_C voidGetSupportedAudioTypesL(RArray< TFourCC > &)
IMPORT_C voidGetSupportedPixelAspectRatiosL(RArray< TVideoAspectRatio > &)
IMPORT_C voidGetSupportedVideoTypesL(CDesC8Array &)
IMPORT_C voidGetVideoFrameSizeL(TSize &)
IMPORT_C TIntMaxGainL()
IMPORT_C CMMFMetaDataEntry *MetaDataEntryL(TInt)
IMPORT_C CVideoRecorderUtility *NewL(MVideoRecorderUtilityObserver &, TInt, TInt)
IMPORT_C TIntNumberOfMetaDataEntriesL()
IMPORT_C voidOpenDesL(TDes8 &, TInt, TUid, TUid, const TDesC8 &, TFourCC)
IMPORT_C voidOpenFileL(const TDesC &, TInt, TUid, TUid, const TDesC8 &, TFourCC)
IMPORT_C voidOpenFileL(const RFile &, TInt, TUid, TUid, const TDesC8 &, TFourCC)
IMPORT_C voidOpenUrlL(const TDesC &, TInt, TInt, TUid, TUid, const TDesC8 &, TFourCC)
IMPORT_C voidPauseL()
IMPORT_C voidPrepare()
IMPORT_C voidRecord()
IMPORT_C TTimeIntervalMicroSecondsRecordTimeAvailable()
IMPORT_C voidRemoveMetaDataEntryL(TInt)
IMPORT_C voidReplaceMetaDataEntryL(TInt, const CMMFMetaDataEntry &)
IMPORT_C voidSetAudioBitRateL(TInt)
IMPORT_C voidSetAudioChannelsL(const TUint)
IMPORT_C voidSetAudioEnabledL(TBool)
IMPORT_C voidSetAudioSampleRateL(const TUint)
IMPORT_C voidSetAudioTypeL(TFourCC)
IMPORT_C voidSetGainL(TInt)
IMPORT_C voidSetMaxClipSizeL(TInt)
IMPORT_C voidSetPixelAspectRatioL(const TVideoAspectRatio &)
IMPORT_C voidSetPriorityL(TInt, TInt)
IMPORT_C voidSetVideoBitRateL(TInt)
IMPORT_C voidSetVideoEnabledL(TBool)
IMPORT_C voidSetVideoFrameRateFixedL(TBool)
IMPORT_C voidSetVideoFrameRateL(TReal32)
IMPORT_C voidSetVideoFrameSizeL(const TSize &)
IMPORT_C voidSetVideoQualityL(TInt)
IMPORT_C voidSetVideoTypeL(const TDesC8 &)
IMPORT_C TIntStop()
IMPORT_C TIntVideoBitRateL()
IMPORT_C TBoolVideoEnabledL()
IMPORT_C const TDesC8 &VideoFormatMimeType()
IMPORT_C TBoolVideoFrameRateFixedL()
IMPORT_C TReal32VideoFrameRateL()
IMPORT_C TIntVideoQualityL()
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 Member Enumerations
enumTMMFVideoRecorderState { EStopped, EOpening, EPaused, ERecording }
Private Attributes
CBody *iBody

Constructor & Destructor Documentation

~CVideoRecorderUtility()

~CVideoRecorderUtility()

Member Functions Documentation

AddMetaDataEntryL(const CMMFMetaDataEntry &)

IMPORT_C voidAddMetaDataEntryL(const CMMFMetaDataEntry &aNewEntry)

Parameters

const CMMFMetaDataEntry & aNewEntry

AudioBitRateL()

IMPORT_C TIntAudioBitRateL()const

AudioChannelsL()

IMPORT_C TUintAudioChannelsL()const

AudioEnabledL()

IMPORT_C TBoolAudioEnabledL()const

AudioSampleRateL()

IMPORT_C TUintAudioSampleRateL()const

AudioTypeL()

IMPORT_C TFourCCAudioTypeL()const

Close()

IMPORT_C voidClose()

ControllerImplementationInformationL()

IMPORT_C const CMMFControllerImplementationInformation &ControllerImplementationInformationL()

CustomCommandAsync(const TMMFMessageDestinationPckg &, TInt, const TDesC8 &, const TDesC8 &, TDes8 &, TRequestStatus &)

IMPORT_C voidCustomCommandAsync(const TMMFMessageDestinationPckg &aDestination,
TIntaFunction,
const TDesC8 &aDataTo1,
const TDesC8 &aDataTo2,
TDes8 &aDataFrom,
TRequestStatus &aStatus
)

Parameters

const TMMFMessageDestinationPckg & aDestination
TInt aFunction
const TDesC8 & aDataTo1
const TDesC8 & aDataTo2
TDes8 & aDataFrom
TRequestStatus & aStatus

CustomCommandAsync(const TMMFMessageDestinationPckg &, TInt, const TDesC8 &, const TDesC8 &, TRequestStatus &)

IMPORT_C voidCustomCommandAsync(const TMMFMessageDestinationPckg &aDestination,
TIntaFunction,
const TDesC8 &aDataTo1,
const TDesC8 &aDataTo2,
TRequestStatus &aStatus
)

Parameters

const TMMFMessageDestinationPckg & aDestination
TInt aFunction
const TDesC8 & aDataTo1
const TDesC8 & aDataTo2
TRequestStatus & aStatus

CustomCommandSync(const TMMFMessageDestinationPckg &, TInt, const TDesC8 &, const TDesC8 &, TDes8 &)

IMPORT_C TIntCustomCommandSync(const TMMFMessageDestinationPckg &aDestination,
TIntaFunction,
const TDesC8 &aDataTo1,
const TDesC8 &aDataTo2,
TDes8 &aDataFrom
)

Parameters

const TMMFMessageDestinationPckg & aDestination
TInt aFunction
const TDesC8 & aDataTo1
const TDesC8 & aDataTo2
TDes8 & aDataFrom

CustomCommandSync(const TMMFMessageDestinationPckg &, TInt, const TDesC8 &, const TDesC8 &)

IMPORT_C TIntCustomCommandSync(const TMMFMessageDestinationPckg &aDestination,
TIntaFunction,
const TDesC8 &aDataTo1,
const TDesC8 &aDataTo2
)

Parameters

const TMMFMessageDestinationPckg & aDestination
TInt aFunction
const TDesC8 & aDataTo1
const TDesC8 & aDataTo2

DurationL()

IMPORT_C TTimeIntervalMicroSecondsDurationL()const

GainL()

IMPORT_C TIntGainL()const

GetPixelAspectRatioL(TVideoAspectRatio &)

IMPORT_C voidGetPixelAspectRatioL(TVideoAspectRatio &aAspectRatio)const

Parameters

TVideoAspectRatio & aAspectRatio

GetPriorityL(TInt &, TMdaPriorityPreference &)

IMPORT_C voidGetPriorityL(TInt &aPriority,
TMdaPriorityPreference &aPref
)const

Parameters

TInt & aPriority
TMdaPriorityPreference & aPref

GetSupportedAudioChannelsL(RArray< TUint > &)

IMPORT_C voidGetSupportedAudioChannelsL(RArray< TUint > &aChannels)const

Parameters

RArray< TUint > & aChannels

GetSupportedAudioSampleRatesL(RArray< TUint > &)

IMPORT_C voidGetSupportedAudioSampleRatesL(RArray< TUint > &aSampleRates)const

Parameters

RArray< TUint > & aSampleRates

GetSupportedAudioTypesL(RArray< TFourCC > &)

IMPORT_C voidGetSupportedAudioTypesL(RArray< TFourCC > &aAudioTypes)const

Parameters

RArray< TFourCC > & aAudioTypes

GetSupportedPixelAspectRatiosL(RArray< TVideoAspectRatio > &)

IMPORT_C voidGetSupportedPixelAspectRatiosL(RArray< TVideoAspectRatio > &aAspectRatios)const

Parameters

RArray< TVideoAspectRatio > & aAspectRatios

GetSupportedVideoTypesL(CDesC8Array &)

IMPORT_C voidGetSupportedVideoTypesL(CDesC8Array &aVideoTypes)const

Parameters

CDesC8Array & aVideoTypes

GetVideoFrameSizeL(TSize &)

IMPORT_C voidGetVideoFrameSizeL(TSize &aSize)const

Parameters

TSize & aSize

MaxGainL()

IMPORT_C TIntMaxGainL()const

MetaDataEntryL(TInt)

IMPORT_C CMMFMetaDataEntry *MetaDataEntryL(TIntaIndex)const

Parameters

TInt aIndex

NewL(MVideoRecorderUtilityObserver &, TInt, TInt)

IMPORT_C CVideoRecorderUtility *NewL(MVideoRecorderUtilityObserver &aObserver,
TIntaPriority = EMdaPriorityNormal,
TIntaPref = EMdaPriorityPreferenceTimeAndQuality
)[static]

Parameters

MVideoRecorderUtilityObserver & aObserver
TInt aPriority = EMdaPriorityNormal
TInt aPref = EMdaPriorityPreferenceTimeAndQuality

NumberOfMetaDataEntriesL()

IMPORT_C TIntNumberOfMetaDataEntriesL()const

OpenDesL(TDes8 &, TInt, TUid, TUid, const TDesC8 &, TFourCC)

IMPORT_C voidOpenDesL(TDes8 &aDescriptor,
TIntaCameraHandle,
TUidaControllerUid,
TUidaVideoFormat,
const TDesC8 &aVideoType =  KNullDesC8 ,
TFourCCaAudioType =  KMMFFourCCCodeNULL
)

Parameters

TDes8 & aDescriptor
TInt aCameraHandle
TUid aControllerUid
TUid aVideoFormat
const TDesC8 & aVideoType =  KNullDesC8
TFourCC aAudioType =  KMMFFourCCCodeNULL

OpenFileL(const TDesC &, TInt, TUid, TUid, const TDesC8 &, TFourCC)

IMPORT_C voidOpenFileL(const TDesC &aFileName,
TIntaCameraHandle,
TUidaControllerUid,
TUidaVideoFormat,
const TDesC8 &aVideoType =  KNullDesC8 ,
TFourCCaAudioType =  KMMFFourCCCodeNULL
)

Parameters

const TDesC & aFileName
TInt aCameraHandle
TUid aControllerUid
TUid aVideoFormat
const TDesC8 & aVideoType =  KNullDesC8
TFourCC aAudioType =  KMMFFourCCCodeNULL

OpenFileL(const RFile &, TInt, TUid, TUid, const TDesC8 &, TFourCC)

IMPORT_C voidOpenFileL(const RFile &aFile,
TIntaCameraHandle,
TUidaControllerUid,
TUidaVideoFormat,
const TDesC8 &aVideoType =  KNullDesC8 ,
TFourCCaAudioType =  KMMFFourCCCodeNULL
)

Parameters

const RFile & aFile
TInt aCameraHandle
TUid aControllerUid
TUid aVideoFormat
const TDesC8 & aVideoType =  KNullDesC8
TFourCC aAudioType =  KMMFFourCCCodeNULL

OpenUrlL(const TDesC &, TInt, TInt, TUid, TUid, const TDesC8 &, TFourCC)

IMPORT_C voidOpenUrlL(const TDesC &aUrl,
TIntaIapId,
TIntaCameraHandle,
TUidaControllerUid,
TUidaVideoFormat,
const TDesC8 &aVideoType =  KNullDesC8 ,
TFourCCaAudioType =  KMMFFourCCCodeNULL
)

Parameters

const TDesC & aUrl
TInt aIapId
TInt aCameraHandle
TUid aControllerUid
TUid aVideoFormat
const TDesC8 & aVideoType =  KNullDesC8
TFourCC aAudioType =  KMMFFourCCCodeNULL

PauseL()

IMPORT_C voidPauseL()

Prepare()

IMPORT_C voidPrepare()

Record()

IMPORT_C voidRecord()

RecordTimeAvailable()

IMPORT_C TTimeIntervalMicroSecondsRecordTimeAvailable()const

RemoveMetaDataEntryL(TInt)

IMPORT_C voidRemoveMetaDataEntryL(TIntaIndex)

Parameters

TInt aIndex

ReplaceMetaDataEntryL(TInt, const CMMFMetaDataEntry &)

IMPORT_C voidReplaceMetaDataEntryL(TIntaIndex,
const CMMFMetaDataEntry &aNewEntry
)

Parameters

TInt aIndex
const CMMFMetaDataEntry & aNewEntry

SetAudioBitRateL(TInt)

IMPORT_C voidSetAudioBitRateL(TIntaBitRate)

Parameters

TInt aBitRate

SetAudioChannelsL(const TUint)

IMPORT_C voidSetAudioChannelsL(const TUintaNumChannels)

Parameters

const TUint aNumChannels

SetAudioEnabledL(TBool)

IMPORT_C voidSetAudioEnabledL(TBoolaEnabled)

Parameters

TBool aEnabled

SetAudioSampleRateL(const TUint)

IMPORT_C voidSetAudioSampleRateL(const TUintaSampleRate)

Parameters

const TUint aSampleRate

SetAudioTypeL(TFourCC)

IMPORT_C voidSetAudioTypeL(TFourCCaType)

Parameters

TFourCC aType

SetGainL(TInt)

IMPORT_C voidSetGainL(TIntaGain)

Parameters

TInt aGain

SetMaxClipSizeL(TInt)

IMPORT_C voidSetMaxClipSizeL(TIntaClipSizeInBytes)

Parameters

TInt aClipSizeInBytes

SetPixelAspectRatioL(const TVideoAspectRatio &)

IMPORT_C voidSetPixelAspectRatioL(const TVideoAspectRatio &aAspectRatio)

Parameters

const TVideoAspectRatio & aAspectRatio

SetPriorityL(TInt, TInt)

IMPORT_C voidSetPriorityL(TIntaPriority,
TIntaPref
)

Parameters

TInt aPriority
TInt aPref

SetVideoBitRateL(TInt)

IMPORT_C voidSetVideoBitRateL(TIntaBitRate)

Parameters

TInt aBitRate

SetVideoEnabledL(TBool)

IMPORT_C voidSetVideoEnabledL(TBoolaEnabled)

Parameters

TBool aEnabled

SetVideoFrameRateFixedL(TBool)

IMPORT_C voidSetVideoFrameRateFixedL(TBoolaFixedFrameRate)

Parameters

TBool aFixedFrameRate

SetVideoFrameRateL(TReal32)

IMPORT_C voidSetVideoFrameRateL(TReal32aFrameRate)

Parameters

TReal32 aFrameRate

SetVideoFrameSizeL(const TSize &)

IMPORT_C voidSetVideoFrameSizeL(const TSize &aSize)

Parameters

const TSize & aSize

SetVideoQualityL(TInt)

IMPORT_C voidSetVideoQualityL(TIntaQuality)

Parameters

TInt aQuality

SetVideoTypeL(const TDesC8 &)

IMPORT_C voidSetVideoTypeL(const TDesC8 &aType)

Parameters

const TDesC8 & aType

Stop()

IMPORT_C TIntStop()

VideoBitRateL()

IMPORT_C TIntVideoBitRateL()

VideoEnabledL()

IMPORT_C TBoolVideoEnabledL()const

VideoFormatMimeType()

IMPORT_C const TDesC8 &VideoFormatMimeType()const

VideoFrameRateFixedL()

IMPORT_C TBoolVideoFrameRateFixedL()const

VideoFrameRateL()

IMPORT_C TReal32VideoFrameRateL()const

VideoQualityL()

IMPORT_C TIntVideoQualityL()const

Member Enumerations Documentation

Enum TMMFVideoRecorderState

Enumerators

EStopped
EOpening
EPaused
ERecording

Member Data Documentation

CBody * iBody

CBody *iBody[private]