You are not logged in.

1

Sunday, November 14th 2010, 1:39pm

about the new "device" setting : how to allow Flash but no android ?

Hi,

with all the new features, i'm trying to update all my settings...

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 :

with this it works on flash desktop and android : right ?

Source code

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


with this it works on flash desktop but load with html5 too : right ?

Source code

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


then what's the setting for Flash Dektop Only ??

Thanks ;-)

z

This post has been edited 1 times, last edit by "zadda" (Nov 14th 2010, 6:09pm)


2

Sunday, November 14th 2010, 2:09pm

If it is a swf type plugin, it will not work on idevices unless you have an an alternate image that is compatible with idevices. Where did you see that you could use a tag called device in a plugin? I don't think that is a valid command unless of course you have an action that will do the actual processing with an if statement for the idevice detection. You should use Safari or something else that works to check your settings before you go too far. Michel and I had issues with Safari this week so a new bugfix by Klaus MAY be on the way.

I don't think you can replicate the snow with XML but if anyone can do it, it would be Klaus.

3

Sunday, November 14th 2010, 4:55pm

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

*smile*

Quoted

You should use Safari or something else that works to check your settings before you go too far.

there no android user agent under develop menu in safari...

z

4

Sunday, November 14th 2010, 5:06pm

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

*smile*


Cool! I overlooked that when I read through it. Looks like I need to read and take notes too. *smile*

5

Sunday, November 14th 2010, 5:19pm

I have to admit, I was totally asleep when I read your first post. I "thought" you were talking about the idevices because I saw the word "device". So sorry.

Going back to your original request, which I now think I understand completely,
I think the desktop option is what you are looking for to keep it on the desktop but not on the android.

I "think" the HTML5 portion would only served on a desktop with HTML5 and not on the other HTML5 devices.


Is that what you meant?

BTW, these new settings (that I overlooked) open a lot of doors for creating unique tours all on one xml file. *thumbsup* *thumbsup* *thumbsup*

michel

Professional

Posts: 1,153

Location: ANDORRA

Occupation: TV

  • Send private message

6

Sunday, November 14th 2010, 5:25pm

Hi,

As today we have a newly updated Documentation (THE MUST READ) *attention* *thumbsup* , here are the doc links to the new devices setting for plugin and hotspot elements:
plugin[name].devices
hotspot[name].devices

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 :
As we now have new variables to check the devices in use, as isandroid , perhaps something like this will do:

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" />


Also, we can check the device in use directly from the html embedding step ....
Have a look to the krpano.html file in the example folder.

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>


Hope this help...

SAlut.

7

Sunday, November 14th 2010, 6:07pm

hi michel,
i start to wonder if you're really an human being or a robot programmed by Klaus *g*
cause you're always on board and with the good answer *g* *g*

yep, i think i will use the isandroid statement, until klaus create a device="flashnoandroid" or "flashnomobile"

thanks

z