capabilities.work

Media Capture Photo

A 4-step recipe with Microsoft Windows 10. We can help you get access.

Recipe · 4 steps

Media Capture Photo

Initialize a camera session and capture a photo to a file.

  1. Enumerate available video capture devices and capture the first camera's device id.
  2. Initialize a video-only MediaCapture session bound to the selected camera.
  3. Start the camera preview stream for the initialized session before capturing.
  4. 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.