Navaron Bracke

Results 472 comments of Navaron Bracke

Interesting. Does hot reload work for you? (using lowercase `r` in the terminal when running a Flutter app) In the case of hot restart (upper case `R`), do you see...

Hmm, yes this seems like an issue with `hot restart` like you mentioned earlier in this thread. I added the check on `error.errorCode == MobileScannerErrorCode.controllerAlreadyInitialized` to prevent issues with hot...

Shouldn't we do do this instead? (in `mobile_scanner`, not in your code) ``` if (error.errorCode == MobileScannerErrorCode.controllerAlreadyInitialized) { await stop(); } // Continue with the rest of the start method,...

Interesting, I had seen this as well when testing our WASM support. What browser is this happening on? Safari has issues with stopping MediaStreams at least.

I cannot reproduce this on Chrome/Firefox/Safari, on the latest version of mobile_scanner. The camera properly closes when: - the app is put in the background - the camera is requested...

@alexandrim0 "I had face the same issue with latest Chrome on Android. Flutter 3.24.3" So this happens when mobile_scanner is used on Chrome on mobile devices, not when using Chrome...

What barcodes we support depends on when the underlying libraries. Android / iOS: https://developers.google.com/android/reference/com/google/mlkit/vision/barcode/common/Barcode.BarcodeFormat MacOS / future iOS version that uses the Vision API: https://developer.apple.com/documentation/vision/vnbarcodesymbology Web: https://github.com/zxing-js/library/blob/master/src/core/BarcodeFormat.ts

mobile_scanner 6.0.1 currently uses the latest available version of MLKit for iOS & Android. If you want to add support for a new format, I think it is best to...

See https://developers.google.com/android/reference/com/google/mlkit/vision/barcode/common/Barcode#public-string-getdisplayvalue which explains the difference. IIRC, in the Vision API / web implementation, we only have the raw value. I would not rely on the presence of a display...

> Can't you just call the `start()` method on `cameraController` according to the `getPermission()` result? > > EDIT: BTW I just noticed the beta for verison 5.0.0 removed the autoStart...