blazor-camera-streamer icon indicating copy to clipboard operation
blazor-camera-streamer copied to clipboard

Is there a way to use the rear facing camera on devices not front?

Open sohnavcom opened this issue 2 years ago • 2 comments

sohnavcom avatar Sep 26 '23 16:09 sohnavcom

Just worked it out: In CameraStreamer.js

this._constraints = { audio: false, video: { width: width, height: height, deviceId: { environment: undefined }, facingMode: "environment" } };

sohnavcom avatar Sep 26 '23 16:09 sohnavcom

I edited the js file as mentioned above starting at line 41, but it still uses my phone's front camera.

Is there anything else that I need to change to take the first available rear camera?

eyeseesharp avatar Nov 02 '23 11:11 eyeseesharp