Media Capture Photo
A 4-step recipe with Microsoft Windows 10. We can help you get access.
Recipe · 4 steps
Media Capture Photo
with Microsoft Windows 10
Initialize a camera session and capture a photo to a file.
- Enumerate available video capture devices and capture the first camera's device id.
- Initialize a video-only MediaCapture session bound to the selected camera.
- Start the camera preview stream for the initialized session before capturing.
- Capture a photo to the supplied output path and capture the resulting file path and dimensions.
What you'll need to have ready
- outputPath: File path the captured photo is written to.
- encodingFormat: Image encoding format for the captured photo.
For your developer
Arazzo workflow microsoft-windows-10:capture-photo, 4 operations: listCaptureDevices → initializeMediaCapture → startPreview → capturePhoto. Specs on APIs.io.