Hi,
there were a lot questions/requests about the xml handling for several devices,
so I have added the possibility to use the "devices" attribute for every xml tag (also the <include> tag),
the xml parser works now like this:
- when a xml tag has a "devices" attribute, it will check that, and if the device doesn't fit, it will skip the whole xml tag and all sub tags of it,
- so it's possible to define the same xml tag two times (or more) for two different devices,
- with it it's possible to make a <include> only for a certain device,
- to comparison - in the old version always all xml tags were parsed and later when building the real plugin/hotspot display elements the devices setting of them was checked
and with a small trick (by defining a sub <krpano> tag) it's possible to use only one xml file with completely different contents for each device,
e.g.
Code
<krpano>
<krpano devices="flash" onstart="showlog(); trace(Flash);">
...
</krpano>
<krpano devices="html5" onstart="showlog(); trace(HTML5);">
...
</krpano>
</krpano>
get the pre-release here for testing:
https://krpano.com/download/beta/
best regards,
Klaus