CCMRMediaRecorder Class Reference
class CCMRMediaRecorder : public CBase |
Abstract Media recorder interface
CAMCMEDIARECORDER.LIB
- Since
- 2.1
Member Functions Documentation
AudioBitRateL()
TInt
| AudioBitRateL | ( | ) | [pure virtual] |
Gets the current target audio bitrate
- Since
- 2.1
AudioEnabledL()
TBool
| AudioEnabledL | ( | ) | const [pure virtual] |
Query whether audio recording is enabled
- Since
- 2.1
GainL()
TInt
| GainL | ( | ) | const [pure virtual] |
Get current audio recording gain
- Since
- 2.1
GetAudioCodecL(TFourCC &)
void | GetAudioCodecL | ( | TFourCC & | aAudioType | ) | [pure virtual] |
Get the currently used audio codec
- Since
- 2.1
Parameters
TFourCC & aAudioType | Used codec as FourCC |
GetSupportedAudioCodecsL(RArray< TFourCC > &)
void | GetSupportedAudioCodecsL | ( | RArray< TFourCC > & | aAudioTypes | ) | [pure virtual] |
Get supported & installed audio codecs
- Since
- 2.1
Parameters
RArray< TFourCC > & aAudioTypes | List of supported & installed audio codecs |
GetSupportedVideoCodecsL(CDesC8Array &)
void | GetSupportedVideoCodecsL | ( | CDesC8Array & | aVideoMimeTypes | ) | [pure virtual] |
Get supported & installed video codecs This can be called also when the recorder is not open
- Since
- 2.1
Parameters
CDesC8Array & aVideoMimeTypes | List of supported & installed video codecs as mime type |
GetVideoCodecL(TDes8 &)
void | GetVideoCodecL | ( | TDes8 & | aVideoMimeType | ) | [pure virtual] |
Get the currently used video codec
- Since
- 2.1
Parameters
TDes8 & aVideoMimeType | Used codec as mime type |
GetVideoFrameSizeL(TSize &)
void | GetVideoFrameSizeL | ( | TSize & | aSize | ) | const [pure virtual] |
Get current video frame size
- Since
- 2.1
Parameters
TSize & aSize | Current size (Output) |
GetVideoRateControlOptionsL(TRateControlOptions &)
Gets current video bit-rate control options for a whole bitstream. This method can only be called after the media recorder has been prepared or during recording.
MaxGainL()
TInt
| MaxGainL | ( | ) | const [pure virtual] |
Get maximum audio recording gain
- Since
- 2.1
MaxTotalBitRateL()
TInt
| MaxTotalBitRateL | ( | ) | const [pure virtual] |
Get current maximum total (audio+video) bitrate
- Since
- 2.1
OpenL(MCMRMediaRecorderObserver *, MDataSource *, MCMRMediaSink *, TInt, const TDesC8 &, TFourCC)
Open the recorder: Creates A/V recorders & other needed components
- Since
- 2.1
PauseL()
void | PauseL | ( | ) | [pure virtual] |
Pauses recording
- Since
- 2.1
PrepareL()
void | PrepareL | ( | ) | [pure virtual] |
Prepares the recorder, for minimising latency in starting
- Since
- 2.1
RecordL()
void | RecordL | ( | ) | [pure virtual] |
Starts recording audio and video
- Since
- 2.1
ResumeL()
void | ResumeL | ( | ) | [pure virtual] |
Resumes recording from Pause
- Since
- 2.1
SetAudioBitRateL(TInt)
void | SetAudioBitRateL | ( | TInt | aBitRate | ) | [pure virtual] |
Set bitrate for audio codec. If we use AMR-NB, the given bitrate is interpreted proprietarily: bitrates that are not exactly AMR bitrates mean that voice activity detection is used and the actual AMR bitrate is the given bitrate rounded upwards to the next AMR bitrate. E.g. aBitRate = 5500 means the AMR bit-rate is 5900 and VAD is enabled
- Since
- 2.1
SetAudioCodecL(const TFourCC &)
void | SetAudioCodecL | ( | const TFourCC & | aAudioType | ) | [pure virtual] |
Set audio codec to be used (overrides the one given in OpenL)
- Since
- 2.1
Parameters
const TFourCC & aAudioType | Audio codec as FourCC |
SetAudioEnabledL(TBool)
void | SetAudioEnabledL | ( | TBool | aEnabled | ) | [pure virtual] |
Toggles audio recording on/off NOTE: This cannot be used during recording!
- Since
- 2.1
Parameters
TBool aEnabled | If ETrue, audio will be recorded |
SetAudioPriorityL(const TMMFPrioritySettings &)
Set audio priority settings
- Since
- 2.1
SetGainL(TInt)
void | SetGainL | ( | TInt | aGain | ) | [pure virtual] |
Set new audio recording input gain
- Since
- 2.1
SetMaxTotalBitRateL(TInt)
void | SetMaxTotalBitRateL | ( | TInt | aBitRate | ) | [pure virtual] |
Set new maximum total (audio+video) bitrate
- Since
- 2.1
SetPreferredVideoEncapsulationL(TVideoDataUnitEncapsulation)
Set video encoder output format encapsulation for H.264 / AVC. Usage optional. This overrides Media Recorder internal default preferences for TVideoDataUnitEncapsulation if used encoder supports multiple encapsulations.
Default for H.264 / AVC is: EDuGenericPayload
SetPreferredVideoEncoderL(TUid &)
void | SetPreferredVideoEncoderL | ( | TUid & | aEncoder | ) | [pure virtual] |
Set video encoder using its UID. Usage optional. This overrides Media Recorder internal search for encoder based on set video mime type ( SetVideoCodecL() ).
Parameters
TUid & aEncoder | "Video encoder UID." |
SetSegmentTargetSizeL(TUint, TUint, TUint)
void | SetSegmentTargetSizeL | ( | TUint | aLayer, |
| TUint | aSizeBytes, |
| TUint | aSizeMacroblocks |
| ) | [pure virtual] |
Set video encoder target segment size. Usage optional. Exposes
CMMFDevVideoRecord::SetSegmentTargetSize (devvideorecord.h) to MediaRecorder clients. Typically used in video sharing use case instead of local video recording.
- Since
- 5.2
Parameters
TUint aLayer | "Layer number. Layers are numbered [0 n-1], where n is the number of layers
available. Use zero if layered bit-rate scalability is not used." |
TUint aSizeBytes | "Segment target size in bytes. Set to zero to use unlimited segment size. The segment size in bytes should include all data that is typically stored or transmitted for each segment in the format currently in use. This includes all related headers."
@param "aSizeMacroblocks" "Segment target size in number of macroblocks per segment. Set to zero to use unlimited segment size." |
TUint aSizeMacroblocks | |
SetVideoBitRateL(TInt)
void | SetVideoBitRateL | ( | TInt | aBitRate | ) | [pure virtual] |
Set new target video bitrate. Possible to change also when recording.
- Since
- 2.1
Parameters
TInt aBitRate | Target bitrate in bps, or KMMFVariableVideoBitRate |
SetVideoCodecL(const TDesC8 &)
void | SetVideoCodecL | ( | const TDesC8 & | aVideoMimeType | ) | [pure virtual] |
Set video codec to be used (overrides the one given in OpenL)
- Since
- 2.1
Parameters
const TDesC8 & aVideoMimeType | video mime type |
SetVideoCodingOptionsL(const TCCMRVideoCodingOptions &)
Set misc video coding options
- Since
- 2.1
SetVideoFrameRateL(TReal32)
void | SetVideoFrameRateL | ( | TReal32 | aFrameRate | ) | [pure virtual] |
Set new video frame rate (encoding and capturing). Possible to change also when recording but then affects only to encoding rate and cannot increase higher than capturing rate set in the initialization.
- Since
- 2.1
SetVideoFrameSizeL(const TSize &)
void | SetVideoFrameSizeL | ( | const TSize & | aSize | ) | [pure virtual] |
Set new video frame size. Possible only when not recording
- Since
- 2.1
Parameters
const TSize & aSize | New size |
SetVideoRateControlOptionsL(const TRateControlOptions &)
Sets the video bitrate control options for a whole bitstream. This method can only be called after the media recorder has been prepared or during recording.
State()
Returns the current state of the recorder
- Since
- 2.1
StopL()
void | StopL | ( | ) | [pure virtual] |
Stops recording audio and video
- Since
- 2.1
VideoBitRateL()
TInt
| VideoBitRateL | ( | ) | [pure virtual] |
Get current target video bitrate
- Since
- 2.1
VideoFrameRateL()
TReal32
| VideoFrameRateL | ( | ) | [pure virtual] |
Get current video frame rate
- Since
- 2.1
Member Enumerations Documentation
Enum TRecorderState
Enumerators
EStateNone = 0 | |
EStateOpen | |
EStatePreparing | |
EStateReadyToRecord | |
EStateRecording | |
EStatePaused | |
EStateStopping | |
EStatePausing | |
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.