Sie sind nicht angemeldet.

Scott Witte

Fortgeschrittener

  • »Scott Witte« ist der Autor dieses Themas

Beiträge: 382

Wohnort: Milwaukee, WI USA

Beruf: Professional Photographer

  • Nachricht senden

1

Freitag, 18. März 2022, 06:35

%VIEWER% Path Bug in v1.20.11

Hi Klaus,

%VIEWER% is being interpreted incorrectly in v1.20.11. In my file structure it results in ./ instead of ../

My file structure is a little different than the default:

Quellcode

1
2
3
4
5
6
7
8
9
10
11
tour.html
<files>
      tour.js
      tour.xml
      <plugins>
            webvr.xml
      </plugins>
      <skin>
             vtourskin.xml
      </skin>
</files>

When I open tour.html I get the error "./plugins/webvr.xml - loading failed! (0)"

If I hardcode ../ instead of %VIEWER%/ it works fine. This wasn't an issue in any previous versions.

Bug???

2

Freitag, 18. März 2022, 08:39

Hi,

no bug, but without the swf embedding parameter to define the viewer file location:
https://krpano.com/docu/html/#swf

the basepath setting would need to be used:
https://krpano.com/docu/html/#basepath

Best regards,
Klaus

Scott Witte

Fortgeschrittener

  • »Scott Witte« ist der Autor dieses Themas

Beiträge: 382

Wohnort: Milwaukee, WI USA

Beruf: Professional Photographer

  • Nachricht senden

3

Freitag, 18. März 2022, 19:25

Hi Klaus,

Thanks for the clarification. Adding a basepath parameter to embedpano worked. That was definitely unclear to me before. There is no reference to this in the URL docs.

I foresee problems going forward. Beginning with v1.20.11 we are getting rid of flash entirely. Therefore the flash player, including its path, is no longer defined. Therefore %VIEWER%, %ROOT%, and %SWFPATH% no longer have a value. But %VIEWER% etc. is used everywhere in KRPano. That obviously can lead to problems.

Perhaps with the next iteration you could use the path to tour.js to define %VIEWER% etc?

Thanks!

4

Donnerstag, 24. März 2022, 19:28

Hi,

I agree and I have to say when starting working on the HTML5 viewer I thought about this case, but unfortunately at this time didn't found a solution that was working reliable cross-browser.

But since that a lot of things had changed and now automatically getting the path of the krpano script file is something that would be possible.

I have implemented this now for version 1.21 and it's working great and in all browsers (even IE11). That means with that version the %VIEWER% path can be determined automatically - and optionally also be overwritten as before using the basepath setting (the documentation about these relations will be also updated and improved).

Best regards,
Klaus

Scott Witte

Fortgeschrittener

  • »Scott Witte« ist der Autor dieses Themas

Beiträge: 382

Wohnort: Milwaukee, WI USA

Beruf: Professional Photographer

  • Nachricht senden

5

Donnerstag, 24. März 2022, 20:43

*thumbup*