UseGetFrontCamera
katanakit-js / useGetFrontCamera
Function: useGetFrontCamera()
Section titled “Function: useGetFrontCamera()”function useGetFrontCamera(): Promise<MediaStream | null>;Defined in: infrastructure/sensors/sensors.service.ts:81
Opens the front-facing (user) camera.
Returns
Section titled “Returns”Promise<MediaStream | null>
A video-only MediaStream or null.
Example
Section titled “Example”const selfieStream = await useGetFrontCamera();