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
Hi, i really like your plugin, really works well in my project.
I have one suggestion, if you don't mind. Please make config to select the camera facing for "environment" or "user".
Especially for web.
I kinda hardcoded specific for my case in qr_code_scanner_web_impl.dart
// find out what device this apps is running fromString facingMode ="environment"; // defaulttry {
final userAgent = html.window.navigator.userAgent.toString()
.toLowerCase();
if (userAgent.contains('iphone'))
facingMode ='environment';
elseif (userAgent.contains('ipad'))
facingMode ='user';
elseif (userAgent.contains('macintosh'))
facingMode ='user';
elseif (userAgent.contains('android')) facingMode ='environment';
}
catch (err) {
// do nothing
}
// Access the webcam streamtry {
html.window.navigator.mediaDevices?.getUserMedia({
'video': {'facingMode': facingMode}
}).then((html.MediaStream stream) {
_stream = stream;
_video.srcObject = stream;
_video.setAttribute('playsinline',
'true'); // required to tell iOS safari we don't want fullscreen
_video.play();
});
} catch (err) {
print(err);
//Fallbacktry {
html.window.navigator
.getUserMedia(video: {'facingMode': facingMode}).then(
(html.MediaStream stream) {
_stream = stream;
_video.srcObject = stream;
_video.setAttribute('playsinline',
'true'); // required to tell iOS safari we don't want fullscreen
_video.play();
});
} catch (e) {
print(e);
}
}
I wanna push request myself. But i'm really new into flutter, and haven't learn how to send parameter from the parent plugin to the web implementation.
Hi, i really like your plugin, really works well in my project.
I have one suggestion, if you don't mind. Please make config to select the camera facing for "environment" or "user".
Especially for web.
I kinda hardcoded specific for my case in
qr_code_scanner_web_impl.dart
I wanna push request myself. But i'm really new into flutter, and haven't learn how to send parameter from the parent plugin to the web implementation.
I want to make some paremeter to pass like
Thanks
The text was updated successfully, but these errors were encountered: