You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have the same problem as described in issue #59, I followed the directions for using MediaTrackConstraints and set the facingMode, but nothing happen. In order to write my code I took as a reference the example provided by you here
I have the same problem as described in issue #59, I followed the directions for using MediaTrackConstraints and set the facingMode, but nothing happen. In order to write my code I took as a reference the example provided by you here
<webcam [height]="500" [width]="500" [trigger]="triggerObservable" (imageCapture)="handleImage($event)" [allowCameraSwitch]="true" [switchCamera]="nextWebcamObservable" [videoOptions]="videoOptions" [imageQuality]="1" (cameraSwitched)="cameraWasSwitched($event)" (initError)="handleInitError($event)" ></webcam>
public facingMode: string = 'environment'; public get videoOptions(): MediaTrackConstraints { const result: MediaTrackConstraints = {}; if (this.facingMode && this.facingMode !== '') { result.facingMode = { ideal: this.facingMode }; } return result; }
I use:
The text was updated successfully, but these errors were encountered: