Hallo Klaus,
ich probiere gerade mit der iPhone Funktionalität rum.
Normalerweise habe ich die <view> Section in einem eigenen include. Auf dem iPhone werden dann aber keine mobile-JPGs gefunden (ERROR: no iPhone / iPad images available!). Wenn ich die Daten der include-Datei 1:1 direkt reinkopiere funktioniert alles wunderbar. Woran kann das liegen?
Hier die Codeschnipsel:
So funktioniert es nicht:
Datei: iPano.xml
Code
<krpano version="1.0.8">
<view fovtype="MFOV" fov="90" fovmin="50" fovmax="150" />
<control touchfriction="0.89" />
<!-- ============================================================== -->
<!-- Preview und Image include -->
<!-- ============================================================== -->
<include url="pano-incl-image.xml" />
</krpano>
Display More
Datei: pano-incl-image.xml
Code
<!-- ============================================================== -->
<!-- pano-incl-image.xml -->
<!-- -->
<!-- Josef Spitzlberger -->
<!-- Schloss Lustheim 1; 85764 Oberschleissheim -->
<!-- ============================================================== -->
<!-- ============================================================== -->
<!-- Preview und Image -->
<!-- ============================================================== -->
<preview type="CUBESTRIP" url="pano.tiles/preview.jpg" />
<image type="CUBE" multires="true" tilesize="539">
<level tiledimagewidth="5659" tiledimageheight="5659">
<left url="pano.tiles/l4_l_%0v_%0h.jpg" />
<front url="pano.tiles/l4_f_%0v_%0h.jpg" />
<right url="pano.tiles/l4_r_%0v_%0h.jpg" />
<back url="pano.tiles/l4_b_%0v_%0h.jpg" />
<up url="pano.tiles/l4_u_%0v_%0h.jpg" />
<down url="pano.tiles/l4_d_%0v_%0h.jpg" />
</level>
<level tiledimagewidth="2830" tiledimageheight="2830">
<left url="pano.tiles/l3_l_%0v_%0h.jpg" />
<front url="pano.tiles/l3_f_%0v_%0h.jpg" />
<right url="pano.tiles/l3_r_%0v_%0h.jpg" />
<back url="pano.tiles/l3_b_%0v_%0h.jpg" />
<up url="pano.tiles/l3_u_%0v_%0h.jpg" />
<down url="pano.tiles/l3_d_%0v_%0h.jpg" />
</level>
<level tiledimagewidth="1415" tiledimageheight="1415">
<left url="pano.tiles/l2_l_%0v_%0h.jpg" />
<front url="pano.tiles/l2_f_%0v_%0h.jpg" />
<right url="pano.tiles/l2_r_%0v_%0h.jpg" />
<back url="pano.tiles/l2_b_%0v_%0h.jpg" />
<up url="pano.tiles/l2_u_%0v_%0h.jpg" />
<down url="pano.tiles/l2_d_%0v_%0h.jpg" />
</level>
<level tiledimagewidth="708" tiledimageheight="708">
<left url="pano.tiles/l1_l_%0v_%0h.jpg" />
<front url="pano.tiles/l1_f_%0v_%0h.jpg" />
<right url="pano.tiles/l1_r_%0v_%0h.jpg" />
<back url="pano.tiles/l1_b_%0v_%0h.jpg" />
<up url="pano.tiles/l1_u_%0v_%0h.jpg" />
<down url="pano.tiles/l1_d_%0v_%0h.jpg" />
</level>
<!-- mobile phone / iphone images -->
<mobile>
<left url="pano.tiles/mobile_l.jpg" />
<front url="pano.tiles/mobile_f.jpg" />
<right url="pano.tiles/mobile_r.jpg" />
<back url="pano.tiles/mobile_b.jpg" />
<up url="pano.tiles/mobile_u.jpg" />
<down url="pano.tiles/mobile_d.jpg" />
</mobile>
<!-- tablet pc / ipad images -->
<tablet>
<left url="pano.tiles/tablet_l.jpg" />
<front url="pano.tiles/tablet_f.jpg" />
<right url="pano.tiles/tablet_r.jpg" />
<back url="pano.tiles/tablet_b.jpg" />
<up url="pano.tiles/tablet_u.jpg" />
<down url="pano.tiles/tablet_d.jpg" />
</tablet>
</image>
Display More
So funktioniert es:
Datei: iPano.xml
Code
<krpano version="1.0.8">
<view fovtype="MFOV" fov="90" fovmin="50" fovmax="150" />
<control touchfriction="0.89" />
<!-- ============================================================== -->
<!-- Preview und Image include -->
<!-- ============================================================== -->
<preview type="CUBESTRIP" url="pano.tiles/preview.jpg" />
<image type="CUBE" multires="true" tilesize="539">
<level tiledimagewidth="5659" tiledimageheight="5659">
<left url="pano.tiles/l4_l_%0v_%0h.jpg" />
<front url="pano.tiles/l4_f_%0v_%0h.jpg" />
<right url="pano.tiles/l4_r_%0v_%0h.jpg" />
<back url="pano.tiles/l4_b_%0v_%0h.jpg" />
<up url="pano.tiles/l4_u_%0v_%0h.jpg" />
<down url="pano.tiles/l4_d_%0v_%0h.jpg" />
</level>
<level tiledimagewidth="2830" tiledimageheight="2830">
<left url="pano.tiles/l3_l_%0v_%0h.jpg" />
<front url="pano.tiles/l3_f_%0v_%0h.jpg" />
<right url="pano.tiles/l3_r_%0v_%0h.jpg" />
<back url="pano.tiles/l3_b_%0v_%0h.jpg" />
<up url="pano.tiles/l3_u_%0v_%0h.jpg" />
<down url="pano.tiles/l3_d_%0v_%0h.jpg" />
</level>
<level tiledimagewidth="1415" tiledimageheight="1415">
<left url="pano.tiles/l2_l_%0v_%0h.jpg" />
<front url="pano.tiles/l2_f_%0v_%0h.jpg" />
<right url="pano.tiles/l2_r_%0v_%0h.jpg" />
<back url="pano.tiles/l2_b_%0v_%0h.jpg" />
<up url="pano.tiles/l2_u_%0v_%0h.jpg" />
<down url="pano.tiles/l2_d_%0v_%0h.jpg" />
</level>
<level tiledimagewidth="708" tiledimageheight="708">
<left url="pano.tiles/l1_l_%0v_%0h.jpg" />
<front url="pano.tiles/l1_f_%0v_%0h.jpg" />
<right url="pano.tiles/l1_r_%0v_%0h.jpg" />
<back url="pano.tiles/l1_b_%0v_%0h.jpg" />
<up url="pano.tiles/l1_u_%0v_%0h.jpg" />
<down url="pano.tiles/l1_d_%0v_%0h.jpg" />
</level>
<!-- mobile phone / iphone images -->
<mobile>
<left url="pano.tiles/mobile_l.jpg" />
<front url="pano.tiles/mobile_f.jpg" />
<right url="pano.tiles/mobile_r.jpg" />
<back url="pano.tiles/mobile_b.jpg" />
<up url="pano.tiles/mobile_u.jpg" />
<down url="pano.tiles/mobile_d.jpg" />
</mobile>
<!-- tablet pc / ipad images -->
<tablet>
<left url="pano.tiles/tablet_l.jpg" />
<front url="pano.tiles/tablet_f.jpg" />
<right url="pano.tiles/tablet_r.jpg" />
<back url="pano.tiles/tablet_b.jpg" />
<up url="pano.tiles/tablet_u.jpg" />
<down url="pano.tiles/tablet_d.jpg" />
</tablet>
</image>
</krpano>
Display More
HTML:
Code
...
<script type="text/javascript">
var so = createswf( "/fileadmin/krpano/krpano.swf");
so.addVariable("xml", "eg/R001/iPano.xml");
so.embed("krpanoDIV");
</script>
...
Dateistruktur:
.../pano.html
.../eg/R001/iPano.xml
.../eg/R001/pano-incl-image.xml
.../eg/R001/pano.tiles/...
Viele Grüße
Sepp