You are not logged in.

esys

Intermediate

  • "esys" started this thread

Posts: 267

Location: Balazé France

Occupation: photographer

  • Send private message

1

Sunday, February 27th 2011, 5:34am

Alternative swf load for Androïd ?

Hi,

I've uploaded a Tour on my web server with the main xml embbeded in the swf file, and only one xml specially for the i-phone :

http://www.humanfoto.fr/C/tour.html

I've tried from a samsung mobile which using Androïd and it loaded the swf file (long time) while i-phone load the xml. Normal. But does Androïd load the normal tiles or the "mobile" tiles ?
If it's supporting the multirésolution, is there a way to lead the Android's requests on the xml, or on a lighter version of the swf file embbeded.? Or write an "altloaded" for Androïd in the main xml, for each hotspots or plugin ? To shorten the time's loading.

Thanks. *smile*
Steph

VN2011

Professional

Posts: 1,336

Location: Duluth MN

  • Send private message

2

Sunday, February 27th 2011, 6:38am

this in the html can help point certain devices to certain files.

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<body>

<div id="krpanoDIV" style="width:100%;height:100%;">
	<noscript><table style="width:100%;height:100%;"><tr style="valign:middle;"><td><div style="text-align:center;">ERROR:<br/><br/>Javascript not activated<br/><br/></div></td></tr></table></noscript>
</div>

<script src="tour.js"></script>

<script>

	var viewer = createPanoViewer({swf:"tour.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", "mtour.xml");
	else
		viewer.addVariable("xml", "tour.xml");
		
	viewer.embed();

</script>

</body>

HansNyb

Professional

Posts: 1,063

Location: Denmark

Occupation: Photographer

  • Send private message

3

Sunday, February 27th 2011, 10:44am

RE: Alternative swf load for Androïd ?

Hi,

I've uploaded a Tour on my web server with the main xml embbeded in the swf file, and only one xml specially for the i-phone :

http://www.humanfoto.fr/C/tour.html

I've tried from a samsung mobile which using Androïd and it loaded the swf file (long time) while i-phone load the xml. Normal. But does Androïd load the normal tiles or the "mobile" tiles ?
If it's supporting the multirésolution, is there a way to lead the Android's requests on the xml, or on a lighter version of the swf file embbeded.? Or write an "altloaded" for Androïd in the main xml, for each hotspots or plugin ? To shorten the time's loading.

Thanks. *smile*


I tried it on my Desire Z and it loads very fast, loading time was only 5 sec on my WIFI 20 megabit. You may have a slow connection.

But if you want Android to see it you have to skip this weird controller.
Android needs to have large simple zoom buttons as there is no finger zoom in flash.
You also need a good Fullscreen button as that is essential to enjoy it on a smartphone

Check this one I have at panoramas.dk and you can zoom all the way in, it is a 4092x4092 cubeface pano.
http://www.panoramas.dk/2010/carl-bloch.html

You can do much larger, I haver a5 gigapixel that works fine on my Android but it needs you to make the design for it.

However to be able to do this you need to skip the Tablet and mobile images and instead use 512x512 multitiling so that iPad and iPhone can use the max 1024x1024 tiles.
As Default you are using the tablet images 1024x1024 on Android.
Read about that in the documentation.

You can of course also do it with different XML as shown by VN2011

I also checked it on iPad but it has a parsing error.
For the html5 you have to be very careful and check your html. The slightest error which passes flash will not do it on HTML5.

You have this error.
error on line 257 at column 56: EntityRef: expecting ';'

Thats in your Google map.

There may be more. Safari will only show you the first error when you load the XML.

Hans

esys

Intermediate

  • "esys" started this thread

Posts: 267

Location: Balazé France

Occupation: photographer

  • Send private message

4

Sunday, February 27th 2011, 2:20pm

this in the html can help point certain devices to certain files.

I was almost sure it was via the html. Since html is the "front door" for any request. But no idea where it was or the syntax.

Thanks one more time VN. *smile*


But if you want Android to see it you have to skip this weird controller.

You're right. I didn't expect to to test via Androïd and that it would load the swf file. I was concentrate on the i-phone. I realised immediately the controller was inneficient. That's why i asked, among others, for an alternative.

Quoted

Android needs to have large simple zoom buttons as there is no finger zoom in flash.

Thanks i didn't know that. *smile*

Quoted

You have this error.
error on line 257 at column 56: EntityRef: expecting '; Thats in your Google map.'

My code (seems to be ok!!):

Source code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
	<plugin name="google-earth" 
	        keep="false"
	        url="skin/google-earth.png"
	        align="rightbottom"
	        zorder="98"
	        x="70" y="30"
	        alpha="0.0"
	        crop="0|0|220|205"
	        onovercrop="0|207|220|220"
	        ondowncrop="0|425|220|230"
            effect="glow(0xffff73,0.0,4,2); dropshadow(1,0x000000,3,0.5);" 	        
	        scale="0.20"
	        onloaded="tween(plugin[google-earth].alpha, 0.9, 2);"
	        onclick="openurl(http://maps.google.com/map.... ,_blank);" />  <!---a space after the comma may be ?----->

Could you help me ? I put safari on my PC. I understood the web inspector, but i can't find where your read those kind of errors as you also did here :
can't load my pano from iphone!

Thanks Hans. *smile* (nice shot in your link by the way)
Steph

This post has been edited 2 times, last edit by "esys" (Feb 27th 2011, 2:38pm)


HansNyb

Professional

Posts: 1,063

Location: Denmark

Occupation: Photographer

  • Send private message

5

Sunday, February 27th 2011, 2:36pm

Could you help me ? I put safari on my PC. I understood the web inspector, but i can't find where your read those kind of errors as you also did here :
can't load my pano from iphone!



You have to load the xml file directly in Safari to get the error report.

If it says something like above with error on aline something you can open the web inspector and choose the xml to find the exact line.

Hans

esys

Intermediate

  • "esys" started this thread

Posts: 267

Location: Balazé France

Occupation: photographer

  • Send private message

6

Sunday, February 27th 2011, 2:42pm

So simple. *whistling*

Thanks for your time Hans. ;-)
Steph

VN2011

Professional

Posts: 1,336

Location: Duluth MN

  • Send private message

7

Monday, February 28th 2011, 2:59pm

just for knowledge sake you cn also use this to check for xml errors.

http://www.w3schools.com/xml/xml_validator.asp

esys

Intermediate

  • "esys" started this thread

Posts: 267

Location: Balazé France

Occupation: photographer

  • Send private message

8

Tuesday, March 1st 2011, 4:10am

Thanks VN.

Good to know. ;-)
Steph