Skip to content
0

katanakit-js / useGetFrontCamera

Function: useGetFrontCamera() ​

ts
function useGetFrontCamera(): Promise<MediaStream | null>;

Defined in: src/infrastructure/sensors/sensors.service.ts:81

Opens the front-facing (user) camera.

Returns ​

Promise<MediaStream | null>

A video-only MediaStream or null.

Example ​

ts
const selfieStream = await useGetFrontCamera();

Released under the MIT License.