-
Notifications
You must be signed in to change notification settings - Fork 10
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
How to use react-krpano-hooks to call xml and panos from other directory? #7
Comments
Hi, @AbuOmair1012 Is there any reason you want to read the files outside the react project for the folder structure? Basically, most of the webserver frameworks will provide a public directory that the browser can access or download the files in it, |
Hi @shinenic Basically, I am developing an application the idea is the user will choose the pano by its name specifically. Is there any example to show how to input the tour.xml, krpano.js files, and the Panos? I have tried >>
the error >>>
|
please take a look at the file structure in the README or the example folder in this repo. also, can you describe how will the user select the pano & what's the full folder structure, and how you provide the static file from the server |
Let me describe a bit, my data are stored in my NAS and the react app should read the data from it. The folder structure is as below ... As I knew the react-krpano reads the data by publishing it in a URL (e.g. localhost:3000/krpano/krpano.js) to be read by react-krpano, but what I want to do is to make react-krpano read the Is there a way to set the
|
Hi,
I am new in krpano so my question is dumb a bit, I used react-krpano-hooks library its wonderful, but the libarary reads panos and tour.xml from public which means in the same directory of the react app for ex " /home/my_react_app/public/ " .
so, how to make it read panos and tour.xml from other directories for ex from " /home/Desktop/my_data/ ". ?
The text was updated successfully, but these errors were encountered: