Condividi tramite


CamcorderProfile.Get Method

Definition

Overloads

Get(CamcorderQuality)

Returns the default camcorder profile at the given quality level for the first back-facing camera on the device.

Get(Int32, CamcorderQuality)

Returns the default camcorder profile for the given camera at the given quality level.

Get(CamcorderQuality)

Returns the default camcorder profile at the given quality level for the first back-facing camera on the device.

[Android.Runtime.Register("get", "(I)Landroid/media/CamcorderProfile;", "")]
public static Android.Media.CamcorderProfile? Get (Android.Media.CamcorderQuality quality);
[<Android.Runtime.Register("get", "(I)Landroid/media/CamcorderProfile;", "")>]
static member Get : Android.Media.CamcorderQuality -> Android.Media.CamcorderProfile

Parameters

quality
CamcorderQuality

the target quality level for the camcorder profile

Returns

Attributes

Remarks

Returns the default camcorder profile at the given quality level for the first back-facing camera on the device. If the device has no back-facing camera, this returns null.

This member is deprecated. Use #getAll instead

Java documentation for android.media.CamcorderProfile.get(int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

See also

  • <xref:Android.Media.CamcorderProfile.Get(System.Int32%2c+Android.Media.CamcorderQuality)>

Applies to

Get(Int32, CamcorderQuality)

Returns the default camcorder profile for the given camera at the given quality level.

[Android.Runtime.Register("get", "(II)Landroid/media/CamcorderProfile;", "")]
public static Android.Media.CamcorderProfile? Get (int cameraId, Android.Media.CamcorderQuality quality);
[<Android.Runtime.Register("get", "(II)Landroid/media/CamcorderProfile;", "")>]
static member Get : int * Android.Media.CamcorderQuality -> Android.Media.CamcorderProfile

Parameters

cameraId
Int32

the id for the camera. Integer camera ids parsed from the list received by invoking CameraManager#getCameraIdList can be used as long as they are CameraMetadata#REQUEST_AVAILABLE_CAPABILITIES_BACKWARD_COMPATIBLE and not CameraMetadata#INFO_SUPPORTED_HARDWARE_LEVEL_EXTERNAL EXTERNAL.

quality
CamcorderQuality

the target quality level for the camcorder profile.

Returns

Attributes

Remarks

Returns the default camcorder profile for the given camera at the given quality level.

Quality levels QUALITY_LOW, QUALITY_HIGH are guaranteed to be supported, while other levels may or may not be supported. The supported levels can be checked using #hasProfile(int, int). QUALITY_LOW refers to the lowest quality available, while QUALITY_HIGH refers to the highest quality available. QUALITY_LOW/QUALITY_HIGH have to match one of qcif, cif, 480p, 720p, 1080p or 2160p. E.g. if the device supports 480p, 720p, 1080p and 2160p, then low is 480p and high is 2160p.

The same is true for time lapse quality levels, i.e. QUALITY_TIME_LAPSE_LOW, QUALITY_TIME_LAPSE_HIGH are guaranteed to be supported and have to match one of qcif, cif, 480p, 720p, 1080p, or 2160p.

For high speed quality levels, they may or may not be supported. If a subset of the levels are supported, QUALITY_HIGH_SPEED_LOW and QUALITY_HIGH_SPEED_HIGH are guaranteed to be supported and have to match one of 480p, 720p, or 1080p.

A camcorder recording session with higher quality level usually has higher output bit rate, better video and/or audio recording quality, larger video frame resolution and higher audio sampling rate, etc, than those with lower quality level.

This member is deprecated. Use #getAll instead

Java documentation for android.media.CamcorderProfile.get(int, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to