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

HTTP iframe not returning #1

Open
zhazelton opened this issue Apr 6, 2024 · 6 comments
Open

HTTP iframe not returning #1

zhazelton opened this issue Apr 6, 2024 · 6 comments

Comments

@zhazelton
Copy link

When requesting http://XXX.XXX.XXX.XXX/iframe?http://anywebsite.com

It either returns the default iframe or a blank iframe.

Calling the same website using https returns correctly.

Any ideas on how to allow for http?

@jonathanneels
Copy link
Owner

jonathanneels commented Apr 7, 2024

Hi Zhazelton

Thank you for your interest.
You can use and see index_HEROKU.js where the server works with http. Do note Chrome wants you to use https if you want camera access in a non-localhost situation.

Good luck!

@zhazelton
Copy link
Author

zhazelton commented Apr 9, 2024

Thanks, how do you make the AR object (iframe) bigger? I'm having trouble deciphering this code lol

@jonathanneels
Copy link
Owner

Search for the function iFrame3DActions(). Within this function you can adjust various parameters of the frame: including its size, rotation, and position, which are based on the Three.js 3D-box (somewhat mirrored).

@zhazelton
Copy link
Author

zhazelton commented Apr 9, 2024

Thanks, one more question, how do I zoom out the iframe? I have made it larger due to your reccomendation above, but I need to zoom out to display more content.

@jonathanneels
Copy link
Owner

Hi Zhazelton

I advice you to experiment within the iFrame3DActions() function.

Good luck!

Kind regards
Jn

@jonathanneels
Copy link
Owner

jonathanneels commented Apr 11, 2024

Thanks, one more question, how do I zoom out the iframe? I have made it larger due to your reccomendation above, but I need to zoom out to display more content.

Hi Zhazelton

did you find what you were looking for? By adjusting the scale inside the function you get the requested outcome.

Good luck on your project!

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