Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WebGL - Android can't acces to back camera #7

Open
pablopalma opened this issue Sep 23, 2019 · 10 comments
Open

WebGL - Android can't acces to back camera #7

pablopalma opened this issue Sep 23, 2019 · 10 comments

Comments

@pablopalma
Copy link

Hello,

I'm using the WebcamTextureMarklessARExample. When i run my WebGL scene through my Android device, i can't change my front camera to my back camera.

There's some common issue? Some solution?

Thanks.

@EnoxSoftware
Copy link
Owner

This issue may be related to the following issues.
https://forum.unity.com/threads/device-camera-in-webgl.523253/

@pablopalma
Copy link
Author

Yes , i tried build to development build but i got this error that i think it's referred with OpenCV
error development build.txt

@EnoxSoftware
Copy link
Owner

Currently, it seems that build error occurs when development build is enabled on Unity 2018.2 or higher WebGL platform.
It's under investigation.

@pablopalma
Copy link
Author

I'm using 2019.1.x. So in 2018.1 or below should work the development build?

@EnoxSoftware
Copy link
Owner

Yes, if using Unity2018.1 or below, the development build will succeed without problems.

@pablopalma
Copy link
Author

I'm having the following error:

error - still waiting on run dependencies: UnityLoader.js:1091:40 dependency: wasm-instantiate

This error occurs when i compile with development build and i check de pre-built option.

In the PC i can start my app, but in mobile crashes.

If i not check the pre-built option, the build fails with the emscripten py.

Some idea about this?

@EnoxSoftware
Copy link
Owner

Thank you very much for reporting.

Could you tell me about your test environment?
OpenCVForUnity version :
Unity version :

@pablopalma
Copy link
Author

Unity 2018.1.9f2
OpenCV 2.3.6

@pablopalma
Copy link
Author

Some news? i'm really complicated with deliver time, so if we can talk in some fludent way for quick responses, will great.

@EnoxSoftware
Copy link
Owner

Unity WebGL content is not currently supported on mobile devices.
https://docs.unity3d.com/Manual/webgl-browsercompatibility.html

The build succeeded without problems in my environment.
Unity 2018.1.9f2
OpenCV 2.3.6
development build on
use pre-built option on
https://www.dropbox.com/s/o98pk6679ms9jvz/OpenCVForUnityWebGL_Unity2018.1.9f2.zip?dl=0

Also,
Fixed the build error that occurred when development build was enabled on Unity 2018.2 or higher.
https://www.dropbox.com/s/462xa2aayni7oeq/OpenCVForUnity_WebGLPlugin_DevelopmentBuild.unitypackage?dl=0

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

No branches or pull requests

2 participants