CameraCaptureUIVideoFormat enumeration

This topic has not yet been rated - Rate this topic

Determines the format for saving captured videos.

Syntax


var value = Windows.Media.Capture.CameraCaptureUIVideoFormat.mp4;

Attributes

VersionAttribute(NTDDI_WIN8)

Members

The CameraCaptureUIVideoFormat enumeration has these members.

MemberValueDescription
Mp4 | mp40

MP4/H.264/AAC format.

Wmv | wmv1

WMV format.

Examples

The following example sets the video format to WMV.


// 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

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Namespace

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

Metadata

Windows.winmd

Capabilities

webcam
microphone

 

 

Build date: 12/4/2012

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.