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

https config to test in VR with the ip #48

Open
vincentfretin opened this issue Apr 5, 2024 · 0 comments
Open

https config to test in VR with the ip #48

vincentfretin opened this issue Apr 5, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@vincentfretin
Copy link
Member

navigator.mediaDevices is undefined on non secure context. Secure context is https or localhost 127.0.0.1.
You'll get the following error if you use your ip 192.168.1.15 for example and connect to test multi-users:

networked-aframe.min.js:1 TypeError: Cannot read properties of undefined (reading 'getUserMedia')
    at h.value (networked-aframe.min.js:1:32361)
    at networked-aframe.min.js:1:27572
    at new Promise (<anonymous>)
    at h.value (networked-aframe.min.js:1:27543)
    at t.value (networked-aframe.min.js:1:10214)
    at n.connect (networked-aframe.min.js:1:74489)
    at v.emit (a-node.js:293:10)
    at HTMLButtonElement.onclick (index.html:222:36) 'failure to connect

Add a commented config to run on https or maybe enable it via an environment variable and use a specific command npm run start:https
See networked-aframe/naf-valid-avatars@a4479b6 where I actually use the self-signed certificate generated by webpack dev server.

@vincentfretin vincentfretin added the enhancement New feature or request label Apr 5, 2024
@vincentfretin vincentfretin moved this from Todo to Planned in Sponsorship Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Planned
Development

No branches or pull requests

1 participant