CameraCaptureUIMaxVideoResolution enumeration

CameraCaptureUIMaxVideoResolution enumeration

Determines the highest resolution the user can select for capturing video.

Syntax


var value = Windows.Media.Capture.CameraCaptureUIMaxVideoResolution.highestAvailable;

Members

The CameraCaptureUIMaxVideoResolution enumeration has these members.

MemberValueDescription
HighestAvailable | highestAvailable0

The user can select any resolution.

LowDefinition | lowDefinition1

The user can select resolutions up to low definition resolutions.

StandardDefinition | standardDefinition2

The user can select resolutions up to standard definition resolutions.

HighDefinition | highDefinition3

The user can select resolutions up to high definition resolutions.

Examples

The following example sets the resolution to the standard definition.


// Captures a video using the specified settings.
function captureVideo() {
    var captureUI = new Windows.Media.Capture.CameraCaptureUI();
    captureUI.videoSettings.allowTrimming = true;
    captureUI.videoSettings.format = Windows.Media.Capture.CameraCaptureUIVideoFormat.wmv;
    captureUI.videoSettings.maxResolution = Windows.Media.Capture.CameraCaptureUIMaxVideoResolution.standardDefinition;
    captureUI.videoSettings.maxDurationInSeconds = 3;
    captureUI.captureFileAsync(Windows.Media.Capture.CameraCaptureUIMode.video).then(function (file) {
        if (file) {
            document.getElementById("message").innerHTML = "User captured a video."
        }
        else {
            document.getElementById("message").innerHTML = "User didn't capture a video."
        }
    });
}


Requirements (Windows 10 device family)

Device family

Universal, introduced version 10.0.10240.0 [for Xbox, see UWP features that aren't yet supported on Xbox]

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.Media.Capture
Windows::Media::Capture [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

None supported

Namespace

Windows.Media.Capture
Windows::Media::Capture [C++]

Metadata

Windows.winmd

Attributes

[Version(0x06020000)]

 

 

Show:
© 2016 Microsoft