blazor-camera-streamer
blazor-camera-streamer copied to clipboard
Is there a way to use the rear facing camera on devices not front?
Just worked it out: In CameraStreamer.js
this._constraints = { audio: false, video: { width: width, height: height, deviceId: { environment: undefined }, facingMode: "environment" } };
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?