Share via


Camera.Parameters.SupportedVideoSizes Property

Definition

Caution

deprecated

Gets the supported video frame sizes that can be used by MediaRecorder.

[System.Obsolete("deprecated")]
public virtual System.Collections.Generic.IList<Android.Hardware.Camera.Size>? SupportedVideoSizes { [Android.Runtime.Register("getSupportedVideoSizes", "()Ljava/util/List;", "GetGetSupportedVideoSizesHandler")] get; }
[<System.Obsolete("deprecated")>]
[<get: Android.Runtime.Register("getSupportedVideoSizes", "()Ljava/util/List;", "GetGetSupportedVideoSizesHandler")>]
member this.SupportedVideoSizes : System.Collections.Generic.IList<Android.Hardware.Camera.Size>

Property Value

a list of Size object if camera has separate preview and video output; otherwise, null is returned.

Attributes

Remarks

Gets the supported video frame sizes that can be used by MediaRecorder.

If the returned list is not null, the returned list will contain at least one Size and one of the sizes in the returned list must be passed to MediaRecorder.setVideoSize() for camcorder application if camera is used as the video source. In this case, the size of the preview can be different from the resolution of the recorded video during video recording.

Exception on 176x144 (QCIF) resolution: Camera devices usually have a fixed capability for downscaling from larger resolution to smaller, and the QCIF resolution sometimes is not fully supported due to this limitation on devices with high-resolution image sensors. Therefore, trying to configure a QCIF video resolution with any preview or picture size larger than 1920x1080 (either width or height) might not be supported, and #setParameters(Camera.Parameters) will throw a RuntimeException if it is not.

Java documentation for android.hardware.Camera.Parameters.getSupportedVideoSizes().

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