You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Monday, May 6th 2019, 3:32am

krpano and webtorrent

I have just started developing a Krpano and Webtorrent prototype for my website

start code:
  1. js: select all file need in the first scene
  2. js: write a xml string with blob links
  3. js: send xml string to krpano

the main loop
  1. user: clicks on hotspot
  2. krpano: fires off js
  3. js: select all file need in the scene
  4. js: write a xml string with blob links
  5. js: send xml string to krpano
  6. goto 1

2

Monday, May 6th 2019, 6:41am

the scenes look like this:

Source code

1
<scene thumburl="panos/IMG_1191-HDR_Panorama.tiles/thumb.jpg"><preview url="panos/IMG_1191-HDR_Panorama.tiles/preview.jpg"/><image><cube url="panos/IMG_1191-HDR_Panorama.tiles/pano_%s.jpg"/></image></scene>


I am trying to work out how to return blob url inplace of the the url placeholders for each image
I might be able to hijack it though js

3

Tuesday, May 7th 2019, 11:57am

Hi,

there is currently no API for 'hijacking' the loading request or redirectly them manually, but I'm already planing one of the next releases (but not in the next one yet).

Best regards,
Klaus

4

Tuesday, May 7th 2019, 4:14pm

thanks Klaus

I found this code while look around at the website examples source code *smile*

Source code

1
<image><left url="tour.data/aussen.tiles/pano_l.jpg"/><front url="tour.data/aussen.tiles/pano_f.jpg"/><right url="tour.data/aussen.tiles/pano_r.jpg"/><back url="tour.data/aussen.tiles/pano_b.jpg"/><up url="tour.data/aussen.tiles/pano_u.jpg"/><down url="tour.data/aussen.tiles/pano_d.jpg"/></image>


the multires placeholder are my main issue now

5

Wednesday, May 8th 2019, 3:15pm

i have uploaded the source code to github

the project has stalled as my javascript-fu is weak *cry*

6

Thursday, May 9th 2019, 3:31am

looks like krpano dose not like bloburls *sad*

Quoted

VM5160:1 Uncaught RangeError: Invalid typed array length: 107961892351
at new Uint8Array (<anonymous>)
at qb (eval at embedpano (krpano.js:10), <anonymous>:1:59738)
at Ga.p (eval at embedpano (krpano.js:10), <anonymous>:1:49008)
at eval (eval at embedpano (krpano.js:10), <anonymous>:1:50289)
at m (eval at embedpano (krpano.js:10), <anonymous>:1:63632)
at eval (eval at embedpano (krpano.js:10), <anonymous>:1:65437)
at Object.d [as loadxml] (eval at embedpano (krpano.js:10), <anonymous>:1:129797)
at Function.k.loadxml (eval at embedpano (krpano.js:10), <anonymous>:1:98202)
at Object.k.executeActions (eval at embedpano (krpano.js:10), <anonymous>:1:77876)
at Object.k.callaction (eval at embedpano (krpano.js:10), <anonymous>:1:76712)
at pd (eval at embedpano (krpano.js:10), <anonymous>:1:7126)
at HTMLDivElement.jf [as call] (eval at embedpano (krpano.js:10), <anonymous>:1:7163)
at js.js:76
at Array.forEach (<anonymous>)
at start (js.js:69) at onProgress (js.js:163)
https://tomasparks.name/krpano-and-webtorrent/index.html

calling @klaus.krpano

7

Monday, September 9th 2019, 3:23am

thank you @klaus.krpano for adding the customParsePath and customParseTilePath functions, I am hopefully a step closer to my goal :)