CamcorderProfile class

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:

  • 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

See: CamcorderProfile.get

Annotations
  • @Reference('android_media/media_recorder/CamcorderProfile')

Constructors

CamcorderProfile({required int audioBitRate, required int audioChannels, required int audioCodec, required int audioSampleRate, required int duration, required int fileFormat, required int quality, required int videoBitRate, required int videoCodec, required int videoFrameHeight, required int videoFrameRate, required int videoFrameWidth})
Default constructor for CamcorderProfile.

Properties

audioBitRate int
The target audio output bit rate in bits per second.
final
audioChannels int
The number of audio channels used for the audio track.
final
audioCodec int
The audio encoder being used for the audio track.
final
audioSampleRate int
The audio sampling rate used for the audio track.
final
duration int
Default recording duration in seconds before the session is terminated.
final
fileFormat int
The file output format of the camcorder profile.
final
hashCode int
The hash code for this object.
no setterinherited
quality int
The quality level of the camcorder profile.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
videoBitRate int
The target video output bit rate in bits per second.
final
videoCodec int
The video encoder being used for the video track.
final
videoFrameHeight int
The target video frame height in pixels.
final
videoFrameRate int
The target video frame rate in frames per second.
final
videoFrameWidth int
The target video frame width in pixels.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

get(int cameraId, int quality) Future<CamcorderProfile>
Returns the default camcorder profile for the given camera at the given quality level.
hasProfile(int cameraId, int quality) Future<bool>
Returns true if a camcorder profile exists for the given camera at the given quality level.

Constants

quality480p → const int
Quality level corresponding to the 480p (720 x 480) resolution.
quality720p → const int
Quality level corresponding to the 720p (1280 x 720) resolution.
quality1080p → const int
Quality level corresponding to the 1080p (1920 x 1080) resolution.
quality2160p → const int
Quality level corresponding to the 2160p (3840x2160) resolution.
qualityCif → const int
Quality level corresponding to the cif (352 x 288) resolution.
qualityHigh → const int
Quality level corresponding to the highest available resolution.
qualityHighSpeed480p → const int
High speed ( >= 100fps) quality level corresponding to the 480p (720 x 480) resolution.
qualityHighSpeed720p → const int
High speed ( >= 100fps) quality level corresponding to the 720p (1280 x 720) resolution.
qualityHighSpeed1080p → const int
High speed ( >= 100fps) quality level corresponding to the 1080p (1920 x 1080 or 1920x1088) resolution.
qualityHighSpeed2160p → const int
High speed ( >= 100fps) quality level corresponding to the 2160p (3840 x 2160) resolution.
qualityHighSpeedHigh → const int
High speed ( >= 100fps) quality level corresponding to the highest available resolution.
qualityHighSpeedLow → const int
High speed ( >= 100fps) quality level corresponding to the lowest available resolution.
qualityHighSpeedVga → const int
High speed ( >= 100fps) quality level corresponding to the VGA (640 x 480).
qualityLow → const int
Quality level corresponding to the lowest available resolution.
qualityQcif → const int
Quality level corresponding to the qcif (176 x 144) resolution.
qualityQvga → const int
Quality level corresponding to the QVGA (320x240) resolution.
qualityTimeLapse480p → const int
Time lapse quality level corresponding to the 480p (720 x 480) resolution.
qualityTimeLapse720p → const int
Time lapse quality level corresponding to the 720p (1280 x 720) resolution.
qualityTimeLapse1080p → const int
Time lapse quality level corresponding to the 1080p (1920 x 1088) resolution.
qualityTimeLapse2160p → const int
Time lapse quality level corresponding to the 2160p (3840 x 2160) resolution.
qualityTimeLapseCif → const int
Time lapse quality level corresponding to the cif (352 x 288) resolution.
qualityTimeLapseHigh → const int
Time lapse quality level corresponding to the highest available resolution.
qualityTimeLapseLow → const int
Time lapse quality level corresponding to the lowest available resolution.
qualityTimeLapseQcif → const int
Time lapse quality level corresponding to the qcif (176 x 144) resolution.
qualityTimeLapseQvga → const int
Time lapse quality level corresponding to the QVGA (320 x 240) resolution.