Android Guides | Samples

Android.Media.CamcorderProfile Class

Retrieves the predefined camcorder profile settings for camcorder applications.

See Also: CamcorderProfile

Syntax

[Android.Runtime.Register("android/media/CamcorderProfile", DoNotGenerateAcw=true)]
public class CamcorderProfile : Object

Remarks

Retrieves the predefined camcorder profile settings for camcorder applications. These settings are read-only.

The compressed output from a recording session with a given CamcorderProfile contains two tracks: one for audio and one for video.

Each profile specifies the following set of parameters:

  • The file output format
  • Video codec format
  • Video bit rate in bits per second
  • Video frame rate in frames per second
  • Video frame width and height,
  • Audio codec format
  • Audio bit rate in bits per second,
  • Audio sample rate
  • Number of audio channels for recording.

[Android Documentation]

Requirements

Namespace: Android.Media
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 8

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

See Also: Object

Protected Constructors

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

Public Properties

AudioBitRateInt32. The target audio output bit rate in bits per second
AudioChannelsInt32. The number of audio channels used for the audio track
AudioCodecAudioEncoder. The audio encoder being used for the audio track.
AudioSampleRateInt32. The audio sampling rate used for the audio track
DurationInt32. Default recording duration in seconds before the session is terminated.
FileFormatOutputFormat. The file output format of the camcorder profile
QualityCamcorderQuality. The quality level of the camcorder profile
VideoBitRateInt32. The target video output bit rate in bits per second
VideoCodecVideoEncoder. The video encoder being used for the video track
VideoFrameHeightInt32. The target video frame height in pixels
VideoFrameRateInt32. The target video frame rate in frames per second.
VideoFrameWidthInt32. The target video frame width in pixels

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

static
Get(CamcorderQuality) : CamcorderProfile
Returns the camcorder profile for the first back-facing camera on the device at the given quality level.
static
Get(Int32, CamcorderQuality) : CamcorderProfile
Returns the camcorder profile for the given camera at the given quality level.
static
HasProfile(CamcorderQuality) : Boolean
Returns true if camcorder profile exists for the first back-facing camera at the given quality level.
static
HasProfile(Int32, CamcorderQuality) : Boolean
Returns true if camcorder profile exists for the given camera at the given quality level.