Showing
1 changed file
with
2 additions
and
3 deletions
| @@ -107,9 +107,8 @@ class MobileScannerWebPlugin { | @@ -107,9 +107,8 @@ class MobileScannerWebPlugin { | ||
| 107 | html.window.navigator.mediaDevices?.getSupportedConstraints(); | 107 | html.window.navigator.mediaDevices?.getSupportedConstraints(); |
| 108 | if (capabilities != null && capabilities['facingMode']) { | 108 | if (capabilities != null && capabilities['facingMode']) { |
| 109 | var constraints = VideoOptions( | 109 | var constraints = VideoOptions( |
| 110 | - facingMode: | ||
| 111 | - (cameraFacing == CameraFacing.front ? 'user' : 'environment') | ||
| 112 | - ); | 110 | + facingMode: |
| 111 | + (cameraFacing == CameraFacing.front ? 'user' : 'environment')); | ||
| 113 | 112 | ||
| 114 | _localStream = | 113 | _localStream = |
| 115 | await html.window.navigator.getUserMedia(video: constraints); | 114 | await html.window.navigator.getUserMedia(video: constraints); |
-
Please register or login to post a comment