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

<a-scene> accessing my webcam #5470

Closed
khalidmaquilang opened this issue Feb 19, 2024 · 4 comments
Closed

<a-scene> accessing my webcam #5470

khalidmaquilang opened this issue Feb 19, 2024 · 4 comments

Comments

@khalidmaquilang
Copy link

Description:
Why does a-scene displays the video from my webcam? When I decline the permission to use my webcam.. I have this error:
image

  • A-Frame Version: 1.5.0
  • Platform / Device: PC (Chrome)
  • Reproducible Code Snippet or URL:
<a-scene>
        <a-box color="red"></a-box>
    </a-scene>
@khalidmaquilang
Copy link
Author

Adding <a-sky color="#ECECEC"></a-sky> fixes the problem. Is this the correct behavior of <a-scene>?

@mrxz
Copy link
Contributor

mrxz commented Feb 19, 2024

A-Frame does not use your webcam (doesn't even make a getUserMedia call). I fail to see how adding <a-sky> would fix your problem, though I guess it covers the webcam and/or the error message in your case.

Could you post the full HTML, including script tags and inline scripts? If I had to guess, you might be using a modified A-Frame build or include scripts that are intended for webcam based "AR effects".

@khalidmaquilang
Copy link
Author

Oh! Actually I am using AR.js maybe the that's the problem.

@dmarcos
Copy link
Member

dmarcos commented Feb 20, 2024

This looks like an ar.js usage issue. I recommend using Stack Overflow or Discord. We use Github issues for A-Frame specific bugs and feature requests. Best of luck

@dmarcos dmarcos closed this as completed Feb 20, 2024
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

3 participants