Android.Media.MediaRecorder Members

The members of Android.Media.MediaRecorder are listed below.

See Also: Inherited members from Java.Lang.Object

Public Constructors

Default constructor.

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Public Fields

const
MediaErrorServerDiedMediaRecorderError (100). Media server died.
const
MediaRecorderErrorUnknownMediaRecorderError (1). Unspecified media recorder error.

Public Properties

[read-only]
static
AudioSourceMaxint. Gets the maximum value for audio sources.
[read-only]
MaxAmplitudeint. Returns the maximum absolute amplitude that was sampled since the last call to this method.
[read-only]
SurfaceAndroid.Views.Surface. Gets the surface to record from when using SURFACE video source.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

Prepare()
Prepares the recorder to begin capturing and encoding data.
Release()
Releases resources associated with this MediaRecorder object.
Reset()
Restarts the MediaRecorder to its idle state.
SetAudioChannels(int)
Sets the number of audio channels for recording.
SetAudioEncoder(AudioEncoder)
Sets the audio encoder to be used for recording.
SetAudioEncodingBitRate(int)
Sets the audio encoding bit rate for recording.
SetAudioSamplingRate(int)
Sets the audio sampling rate for recording.
SetAudioSource(AudioSource)
Sets the audio source to be used for recording.
SetAuxiliaryOutputFile(Java.IO.FileDescriptor)
Documentation for this section has not yet been entered.
SetAuxiliaryOutputFile(string)
Documentation for this section has not yet been entered.
SetCamera(Android.Hardware.Camera)
Sets a Android.Hardware.Camera to use for recording.
SetCaptureRate(double)
Set video frame capture rate.
SetLocation(float, float)
Set and store the geodata (latitude and longitude) in the output file.
SetMaxDuration(int)
Sets the maximum duration (in ms) of the recording session.
SetMaxFileSize(long)
Sets the maximum filesize (in bytes) of the recording session.
SetOnErrorListener(MediaRecorder.IOnErrorListener)
Register a callback to be invoked when an error occurs while recording.
SetOnInfoListener(MediaRecorder.IOnInfoListener)
Register a callback to be invoked when an informational event occurs while recording.
SetOrientationHint(int)
Sets the orientation hint for output video playback.
SetOutputFile(Java.IO.FileDescriptor)
Pass in the file descriptor of the file to be written.
SetOutputFile(string)
Sets the path of the output file to be produced.
SetOutputFormat(OutputFormat)
Sets the format of the output file produced during recording.
SetPreviewDisplay(Android.Views.Surface)
Sets a Surface to show a preview of recorded media (video).
SetProfile(CamcorderProfile)
Uses the settings from a CamcorderProfile object for recording.
SetVideoEncoder(VideoEncoder)
Sets the video encoder to be used for recording.
SetVideoEncodingBitRate(int)
Sets the video encoding bit rate for recording.
SetVideoFrameRate(int)
Sets the frame rate of the video to be captured.
SetVideoSize(int, int)
Sets the width and height of the video to be captured.
SetVideoSource(VideoSource)
Sets the video source to be used for recording.
Start()
Begins capturing and encoding data to the file specified with setOutputFile().
Stop()
Stops recording.

Public Events

ErrorDocumentation for this section has not yet been entered.
InfoDocumentation for this section has not yet been entered.