Toggle navigation
Toggle navigation
This project
Loading...
Sign in
flutter_package
/
mobile_scanner
Go to a project
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Daniel Newton
2022-03-23 13:33:27 +1300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
7cb065c665311c78b534e0a198b9908d158b7c49
7cb065c6
1 parent
317fea46
test using a raw map
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
lib/mobile_scanner_web_plugin.dart
lib/mobile_scanner_web_plugin.dart
View file @
7cb065c
...
...
@@ -114,8 +114,10 @@ class MobileScannerWebPlugin {
height:
{
'ideal'
:
2160
},
));
// test just using a raw map
var
videoConstraints
=
{
'facingMode'
:
cameraFacing
==
CameraFacing
.
front
?
'user'
:
'environment'
};
_localStream
=
await
html
.
window
.
navigator
.
getUserMedia
(
video:
c
onstraints
);
await
html
.
window
.
navigator
.
getUserMedia
(
video:
videoC
onstraints
);
}
else
{
_localStream
=
await
html
.
window
.
navigator
.
getUserMedia
(
video:
true
);
}
...
...
Please
register
or
login
to post a comment