Language

Camera.Parameters.PreferredPreviewSizeForVideo Property

Definition

Caution

deprecated

Returns the preferred or recommended preview size (width and height) in pixels for video recording.

[System.Obsolete("deprecated")]
public virtual Android.Hardware.Camera.Size? PreferredPreviewSizeForVideo { [Android.Runtime.Register("getPreferredPreviewSizeForVideo", "()Landroid/hardware/Camera$Size;", "GetGetPreferredPreviewSizeForVideoHandler")] get; }
[<System.Obsolete("deprecated")>]
[<get: Android.Runtime.Register("getPreferredPreviewSizeForVideo", "()Landroid/hardware/Camera$Size;", "GetGetPreferredPreviewSizeForVideoHandler")>]
member this.PreferredPreviewSizeForVideo : Android.Hardware.Camera.Size

Property Value

the preferred preview size (width and height) in pixels for video recording if getSupportedVideoSizes() does not return null; otherwise, null is returned.

Attributes

Remarks

Returns the preferred or recommended preview size (width and height) in pixels for video recording. Camcorder applications should set the preview size to a value that is not larger than the preferred preview size. In other words, the product of the width and height of the preview size should not be larger than that of the preferred preview size. In addition, we recommend to choose a preview size that has the same aspect ratio as the resolution of video to be recorded.

Android reference for android.hardware.Camera.Parameters.getPreferredPreviewSizeForVideo.

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

See also