You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.