Sie sind nicht angemeldet.

1

Freitag, 30. März 2012, 16:16

Quick Updates of Plugin URL

Hi, I am updating the URL of a plugin dynamically and I am
having some difficulty. Kindly see http://engine.maltain360.com/pano/panora…y=ref-110014643

Idea is that when you hover on the plugins numbered 1 to 5,
a corresponding thumbnail is viewed in the plugin named Preview. It would seem
that it works fine, but if you hover quickly from one plugin to another sometimes
you end up with the wrong preview.

Any ideas?


Following is the XML:

Quellcode

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<krpano version="1.0.8">
 <preview type="grid(cube,16,16,512,0xCCCCCC,0xF2F2F2,0x999999);" details="16" />

 <plugin name="Preview"
  url="%SWFPATH%/Panoramas/360Malta-110014643/Blank.png"
  keep="true"
  align="topleft" edge="topleft" 
  x="100" y="100" width="228" height="127"
 />

 <plugin name="P1"
  url="%SWFPATH%/Panoramas/360Malta-110014643/1.png"
  align="topleft" edge="topleft" keep="true"
  x="329" y="100" width="45" height="127"
  onover="myOnOver(%SWFPATH%/Panoramas/360Malta-110014643/1_preview.jpg)"
 />

 <plugin name="P2"
  url="%SWFPATH%/Panoramas/360Malta-110014643/2.png"
  align="topleft" edge="topleft" keep="true"
  x="375" y="100" width="45" height="127"
  onover="myOnOver(%SWFPATH%/Panoramas/360Malta-110014643/2_preview.jpg)"
 />

 <plugin name="P3"
  url="%SWFPATH%/Panoramas/360Malta-110014643/3.png"
  align="topleft" edge="topleft" keep="true"
  x="421" y="100" width="45" height="127"
  onover="myOnOver(%SWFPATH%/Panoramas/360Malta-110014643/3_preview.jpg)"
 />

 <plugin name="P4"
  url="%SWFPATH%/Panoramas/360Malta-110014643/4.png"
  align="topleft" edge="topleft" keep="true"
  x="467" y="100" width="45" height="127"
  onover="myOnOver(%SWFPATH%/Panoramas/360Malta-110014643/4_preview.jpg)"
 />

 <plugin name="P5"
  url="%SWFPATH%/Panoramas/360Malta-110014643/5.png"
  align="topleft" edge="topleft" keep="true"
  x="513" y="100" width="45" height="127"
  onover="myOnOver(%SWFPATH%/Panoramas/360Malta-110014643/5_preview.jpg)"
 />


 <action name="myOnOver">
  set(plugin[Preview].url, %1);
 </action>

</krpano>


Thanks,
George

2

Mittwoch, 4. April 2012, 15:55

Hi,

please try updating the krpano version to the least version/build,

best regards,
Klaus

3

Donnerstag, 5. April 2012, 13:44

Thanks for the reply Klaus, I have updated the version to krpano 1.0.8.14 (build 2012-03-16) as suggested, issue still persists though. *sad*

4

Donnerstag, 5. April 2012, 16:39

Did you clear the browser-cache after updating to the new version? I am aware of this problem in older krpano-versions but in your example everything works just fine! So I guess it´s working for you too, after you cleared the cache....

Best regards
Nupsi

5

Donnerstag, 5. April 2012, 16:57

Yes, I even tried with different browsers, no luck. It always works if you hover slowly over the numbered plugins, but if you hover very fast, sometimes you end up with the wrong preview.

It gives me the impression that the events are triggered asynchronously and given that the preview images have different sizes then sometimes the events do not complete in the order that they were triggered.

Of course the fact that the numbered plugins are so close to each other does not help. But I have this requirement in the virtual tour that I am working on. This functionality is in a map, and when the user hovers over the rooms, I need to show the preview.

6

Donnerstag, 5. April 2012, 17:10

Hi!
I test it and you are right. Some time plugin not update on url change.
In this case may be try to preload all images and then switch url or plugins visible.

Regards
Andrey. *thumbup*
VRAP - desktop VR content player based on krpano.
Common tasks in one place in one click! Discussion thread
DOWNLOAD for MAC
DOWNLOAD for WIN

7

Donnerstag, 5. April 2012, 17:18

Do you mean to have a preview plugin for every numbered plugin? and then switch the visibility accordingly, right?

Thing is that the virtual tour is made up of 30+ panoramas - still it is an alternative. Thanks, George.

8

Freitag, 6. April 2012, 04:10

Yes, you right.
Or
add preview plugins with preload="true" it will store images in cash.
And then, switch url like in your example.

Andrey *thumbup*
VRAP - desktop VR content player based on krpano.
Common tasks in one place in one click! Discussion thread
DOWNLOAD for MAC
DOWNLOAD for WIN