Skip to content

Latest commit

 

History

History

CameraCaptureUI

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

README.md

page_type sample
languages
csharp
cppwinrt
cpp
products
windows
windows-app-sdk
name CameraCaptureUI Sample
urlFragment CameraCaptureUISample
description Demonstrates how to capture photos and videos using the CameraCaptureUI API in WinAppSDK, showcasing how to integrate camera functionality into desktop apps.
extendedZipContent
path target
LICENSE
LICENSE

Camera Capture UI Sample Application

This sample demonstrates how to capture photos and videos using the CameraCaptureUI API in a WinUI3 app. It shows how to use the CameraCaptureUI API to launch the camera for photo and video captures within a desktop application. The sample highlights setting custom camera capture options such as format and resolution, handling successful captures, and displaying the captured media.

Note: This sample is targeted and tested for the Windows App SDK 1.7 Experimental 1 and Visual Studio 2022.

Features

This sample demonstrates:

  • Photo Capture: Capturing images with optional settings, including format and resolution.
  • Video Capture: Capturing videos, with options settings for format and maximum resolution.
  • BitmapImage Display: Displaying captured photos using BitmapImage in XAML.
  • Media Playback: Playing back captured videos using MediaPlayerElement.

Prerequisites

Building and Running the Sample

  • Open the solution file (.sln) in Visual Studio.
  • Press Ctrl+Shift+B, or select Build > Build Solution.

Related Documentation and Code Samples