Microsoft Windows 10 · Arazzo Workflow
Microsoft Windows 10 Media Capture Photo
Version 1.0.0
Pick a camera, initialize a capture session, start the preview, and capture a photo to a file.
Provider
Workflows
capture-photo
Initialize a camera session and capture a photo to a file.
Selects the first video capture device, initializes a capture session, starts the preview, and captures a photo to the requested output path.
1
listCameras
listCaptureDevices
Enumerate available video capture devices and capture the first camera's device id.
2
initializeSession
initializeMediaCapture
Initialize a video-only MediaCapture session bound to the selected camera.
3
startPreview
startPreview
Start the camera preview stream for the initialized session before capturing.
4
capturePhoto
capturePhoto
Capture a photo to the supplied output path and capture the resulting file path and dimensions.