I want to do tour.xml version for Mobile and Pc one by one, but don't know how to check the device and then load the tour.xml file for each, I have referenced here but it doesn't work https://krpano.com/forum/wbb/inde…&threadID=10686
How to load tour.xml file by device type?
-
-
My thinking goes into making a "wrapper" tour and load the device specific xml based on device detection in the xml:
So tour.xml (the one you load in the html) would look like this:
Code<krpano> <include url="tour_mobile.xml" devices="mobile.or.tablet" /> <include url="tour_desktop.xml" devices="desktop" /> </krpano>
And then krpano will load the other tours based on device selection.
-
Hi,
I think it is fairly simple.
If you have an xml(s) for desktop and another xml(s) for mobile you can do:There are more options of course. For example you can also give such a devices setting to an action, layer, hotspot, style, event etc etc.. and most often also their attributes.
So it is possible with 1xml to serve different behaviour or looks for specified devices..
Look in the documentation for device.Hope it helps,
Tuur -
Thank you for your support
-
Can I add into
Codeembedpano({swf:"tour.swf", xml:"tour.xml", target:"pano", html5:"auto", mobilescale:1.0, passQueryParameters:true });
[size=10]" ??[quote='Tuur','index.php?page=Thread&postID=90325#post90325']Hi,
I think it is fairly simple.
If you have an xml(s) for desktop and another xml(s) for mobile you can do:There are more options of course. For example you can also give such a devices setting to an action, layer, hotspot, style, event etc etc.. and most often also their attributes.
So it is possible with 1xml to serve different behaviour or looks for specified devices..
Look in the documentation for device.Hope it helps,
Tuur *thumbsup*</include></include>
Jetzt mitmachen!
Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!