CameraCaptureUIVideoCaptureSettings CameraCaptureUIVideoCaptureSettings CameraCaptureUIVideoCaptureSettings CameraCaptureUIVideoCaptureSettings Class

Provides settings for capturing videos. The settings include format, maximum resolution, maximum duration, and whether or not to allow trimming.

Syntax

Declaration

public sealed class CameraCaptureUIVideoCaptureSettingspublic sealed class CameraCaptureUIVideoCaptureSettingsPublic NotInheritable Class CameraCaptureUIVideoCaptureSettingspublic sealed class CameraCaptureUIVideoCaptureSettings

Remarks

To get an instance of this object, retrieve the VideoSettings property.

Properties summary

Determines whether or not the video trimming user interface will be enabled.

Determines the format for storing captured videos.

Determines the maximum duration of a video.

Determines the maximum resolution that the user can select.

Properties

  • AllowTrimming
    AllowTrimming
    AllowTrimming
    AllowTrimming

    Determines whether or not the video trimming user interface will be enabled.

    public bool AllowTrimming { get; set; }public bool AllowTrimming { get; set; }Public ReadWrite Property AllowTrimming As boolpublic bool AllowTrimming { get; set; }

    Property Value

    • bool
      bool
      bool
      bool

      True, if the user will be allowed to trim videos; otherwise, false.

    Remarks

    Video trimming in the CameraCaptureUI is not supported for devices in the Mobile device family. The value of the AllowTrimming property is ignored when your app is running on these devices.

  • Format
    Format
    Format
    Format

    Determines the format for storing captured videos.

    public CameraCaptureUIVideoFormat Format { get; set; }public CameraCaptureUIVideoFormat Format { get; set; }Public ReadWrite Property Format As CameraCaptureUIVideoFormatpublic CameraCaptureUIVideoFormat Format { get; set; }

    Property Value

  • MaxDurationInSeconds
    MaxDurationInSeconds
    MaxDurationInSeconds
    MaxDurationInSeconds

    Determines the maximum duration of a video.

    public float MaxDurationInSeconds { get; set; }public float MaxDurationInSeconds { get; set; }Public ReadWrite Property MaxDurationInSeconds As floatpublic float MaxDurationInSeconds { get; set; }

    Property Value

    • float
      float
      float
      float

      The maximum duration of a video. If this property is set to zero, no maximum duration is enforced.

  • MaxResolution
    MaxResolution
    MaxResolution
    MaxResolution

    Determines the maximum resolution that the user can select.

    public CameraCaptureUIMaxVideoResolution MaxResolution { get; set; }public CameraCaptureUIMaxVideoResolution MaxResolution { get; set; }Public ReadWrite Property MaxResolution As CameraCaptureUIMaxVideoResolutionpublic CameraCaptureUIMaxVideoResolution MaxResolution { get; set; }

    Property Value

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Capabilities

microphone
webcam

Attributes

Windows.Foundation.Metadata.ContractVersionAttribute
Windows.Foundation.Metadata.MarshalingBehaviorAttribute
Windows.Foundation.Metadata.ThreadingAttribute

Details

Assembly

Windows.Media.Capture.dll