Hii there,
I'm glad to use KrPano for one of my projects. On Desktop, no problems what so ever...
(Probably because a desktop is more powerful then just any tablet ? )
But ... when I use the (web)app on tablets, when switching between different pano's,
it crashes all of a sudden. I've read this might be the case due to buffering/caching - something alike?
I tried many possible ways to overcome this issue. But none of them work.
Some help with this would be much appreciated!!
This is how I switch between pano's:
(If I do this, more then once, the app begins to run slower and slower and then finally crashes.)
( panoView is an incoming ember Object... )
updateKrPano: (panoView) ->
# Remove the pano if present.
removepano('panoObject')
# Create new pano
embedpano(
swf:"assets/krpano/flash.swf"
xml: panoView.get('krpano_xml')
passQueryParameters: false
target:"bathroomPano"
id: 'panoObject'
html5:"prefer"
onready:panoReady
);
return
).bind(@), 500
The XML which I'm loading would be:
<krpano version="1.18">
<network caching="false"/>
<display usedesktopimages="auto" hardwarelimit="1024" loadwhilemoving="true" mipmapping="off" devices="tablet"/>
<view hlookat="0" vlookat="0" fov="60" fovmax="70" fovmin="30" limitview="30"/>
<preview url="http://192.168.10.178:3000/uploads/pano_view/preview/1/preview.jpg"/>
<image>
<left url="http://192.168.10.178:3000/uploads/pano_view/left/1/pano_l.jpg"/>
<front url="http://192.168.10.178:3000/uploads/pano_view/middle/1/pano_f.jpg"/>
<right url="http://192.168.10.178:3000/uploads/pano_view/right/1/pano_r.jpg"/>
<back url="http://192.168.10.178:3000/uploads/pano_view/back/1/pano_b.jpg"/>
<up url="http://192.168.10.178:3000/uploads/pano_view/ceiling/1/pano_u.jpg"/>
<down url="http://192.168.10.178:3000/uploads/pano_view/floor/1/pano_d.jpg"/>
</image>
<mobile>
<left url="http://192.168.10.178:3000/uploads/pano_view/left/1/mobile_pano_l.jpg"/>
<front url="http://192.168.10.178:3000/uploads/pano_view/middle/1/mobile_pano_f.jpg"/>
<right url="http://192.168.10.178:3000/uploads/pano_view/right/1/mobile_pano_r.jpg"/>
<back url="http://192.168.10.178:3000/uploads/pano_view/back/1/mobile_pano_b.jpg"/>
<up url="http://192.168.10.178:3000/uploads/pano_view/ceiling/1/mobile_pano_u.jpg"/>
<down url="http://192.168.10.178:3000/uploads/pano_view/floor/1/mobile_pano_d.jpg"/>
</mobile>
<hotspot name="product-pin-1" url="http://192.168.10.178:3000/assets/bathroom/productPin.png" ath="350" atv="30" width="70" height="70" edge="center" zoom="false" onclick="js(onKrPanoHotspotClick(1))"/>
<hotspot name="product-pin-2" url="http://192.168.10.178:3000/assets/bathroom/productPin.png" ath="340" atv="10" width="70" height="70" edge="center" zoom="false" onclick="js(onKrPanoHotspotClick(2))"/>
</krpano>