Skip to content
This repository has been archived by the owner on Oct 10, 2024. It is now read-only.

Scan in App Browser (Webapp) #216

Open
gassssty opened this issue Mar 27, 2023 · 4 comments
Open

Scan in App Browser (Webapp) #216

gassssty opened this issue Mar 27, 2023 · 4 comments

Comments

@gassssty
Copy link

Hi again! :D

I've already open the camera in my web-app but the problem is that it opens the FRONT camera and not the REAR.

I am trying to do this on IOS and Android. On IOS, it works the camera but it is the front camera... but in Android neither the camera works.

Any suggestion?

@thegnuu
Copy link
Collaborator

thegnuu commented Mar 28, 2023

As mentioned in the docs, the web feature is currently in development and not really supported so far.
There are multiple problems with the current implementation starting with the performance and ending with missing implementations of some functions...

I am not really able to help right now since this is not the highest priority, but I am of course open to accept PRs ;)

The first thing to do in the web implementation would be to find a better plugin to get better results, I already tested some WebAssembly libs which provide pretty decent results, but unfortunately it is kinda tricky to implement since one of the licenses won't allow bundling one of the libs.

@gassssty
Copy link
Author

Okay, yes sure!
I'll see what can I do.

By the way, good job! And thanks for all the answers :D

@nicolidin
Copy link

Hi @thegnuu , what I don't understand is how @saimon24 can make it works in his webview. We see in the video:
https://www.youtube.com/watch?v=8GXfjDUCYjU that he run the app with livereload so through the webview on his phone, and it seems to work perfectly.
However on my side on the web (webview), only the front camera open and not the back.

@thegnuu
Copy link
Collaborator

thegnuu commented Mar 29, 2023

Pretty sure he is not using the web implementation, looks like a live view of an android device, so the android implementation is used in this case.

Support for web was initially added in the last release as "beta" two weeks ago and the video was uploaded one year ago ;)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants