Hello everyone Im new to krpano. Im trying to load scene using loadpano() method using js in latest krpano version(1.22.1) as below
When i load from local folder("assets/pano/pano_19_2024_08_16_12_08_05/tour.xml") it gets loaded successfully. But when i try to load dynamically from server it show me Fetal error and the xml is not loading in network tab of browser and also im not getting error message related to FATAL ERROR: in console.
Code
FATAL ERROR:
https://d1g1kk4lk1ysdx.cloudfront.net/wikipoint/vtour/pano_19_2024_08_16_12_08_05/tour.xml - loading failed!
And in older krpano version im able to load same pano from the server.
How i can solve this issue. Please help.
Code
loadXml(xml: any) {
this.krpano.call(
"loadpano(" +
// "assets/pano/pano_19_2024_08_16_12_08_05/tour.xml" +
xml +
", null, MERGE | KEEPSCENES| KEEPMOVING | KEEPIMAGE | KEEPVIEW | KEEPSCENES | NOPREVIEW | KEEPHOTSPOTS | KEEP);"
);
}
Code
I have also tried different xml loading method such as
this.krpano.actions.loadpano(
xml,
null,
"MERGE | KEEPSCENES| KEEPMOVING | KEEPIMAGE | KEEPVIEW | KEEPSCENES | NOPREVIEW | KEEPHOTSPOTS | KEEP"
);
I have tried runnning my project with SSL enable but still getting same issue.