Skip to main content
Version: v8001

Use the front-facing camera

By default, BlinkID uses the rear-facing camera. For kiosk-style applications where a tablet or similar device is mounted and the user holds their document up to the screen, configure the SDK to use the front-facing camera instead.

Set the front-facing camera​

note

This option is not supported when using the all-in-one blinkid package. Use the camera-manager package and build your own scanning flow using the lower-level API.

Pass preferredFacing: "front" when starting the video stream:

import { CameraManager } from "@microblink/camera-manager";

const cameraManager = new CameraManager();
await cameraManager.startCameraStream({
preferredFacing: "front",
});

See the camera selection example app for a complete integration example.