Showing
1 changed file
with
1 additions
and
2 deletions
| @@ -108,8 +108,7 @@ class MobileScannerWebPlugin { | @@ -108,8 +108,7 @@ class MobileScannerWebPlugin { | ||
| 108 | if (capabilities != null && capabilities['facingMode']) { | 108 | if (capabilities != null && capabilities['facingMode']) { |
| 109 | var constraints = VideoOptions( | 109 | var constraints = VideoOptions( |
| 110 | facingMode: | 110 | facingMode: |
| 111 | - (cameraFacing == CameraFacing.front ? 'user' : 'environment') | ||
| 112 | - ); | 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