|
|
Source code |
1 |
<plugin device="flash" keep="true" preload="true" name="snow" url="krpano_files/snow.swf" /> |
|
|
Source code |
1 |
<plugin device="desktop" keep="true" preload="true" name="snow" url="krpano_files/snow.swf" /> |

This post has been edited 1 times, last edit by "zadda" (Nov 14th 2010, 6:09pm)
Quoted
Where did you see that you could use a tag called device in a plugin?
Quoted
- new "devices" setting for plugin and hotspot elements for controlling
where the element should appear
Quoted
You should use Safari or something else that works to check your settings before you go too far.
hi,
Quoted
Where did you see that you could use a tag called device in a plugin?
things move fast :
http://krpano.com/examples/10812/releasenotes.txt
Quoted
- new "devices" setting for plugin and hotspot elements for controlling
where the element should appear
![]()
As we now have new variables to check the devices in use, as isandroid , perhaps something like this will do:
Quoted
how to setup the "device" setting to make a plugin works if this is Only flash but not on android,
example with the snow.swf plugin asking a lot of CPU :
|
|
Source code |
1 2 3 |
<events onxmlcomplete="if(isandroid,removeplugin(snow))" /> <plugin name="snow" device="flash" keep="true" preload="true" url="krpano_files/snow.swf" /> |
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
<script>
var viewer = createPanoViewer({swf:"krpano.swf", id:"krpanoSWFObject", target:"krpanoDIV"});
//viewer.useHTML5("whenpossible"); // incomment to use the HTML5 krpanoJS viewer always when possible (Safari5)
if( viewer.isDevice("iPhone|iPod|Android") )
viewer.addVariable("xml", "krpano_mobile.xml");
else
viewer.addVariable("xml", "krpano.xml");
viewer.embed();
</script>
|