You are not logged in.

Yomas

Intermediate

  • "Yomas" started this thread

Posts: 190

Location: Anglet, France

  • Send private message

1

Wednesday, April 13th 2011, 4:10pm

Problem with embedding tour in Flash /HTML5

Hi all ^^
I've made a tour and edited a special xml for iPhone|iPod|iPad devices.
It works perfectly when these devices is used and on Firefox and IE., thanks Klaus !! ;-)
My problem is when testing on different browser, it mixes the two of them only on Safari and chrome *confused*
Here's my HTML code :

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
25
26
27
28
29
30
31
32
<html>
<head>
	<title>Le Talaia</title>
	<meta name="viewport" content="target-densitydpi=device-dpi, width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0" />
	<meta name="apple-mobile-web-app-capable" content="yes" />
	<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
	<style>
		html { height:100%; }
		body { height:100%; overflow: hidden; margin:0; padding:0; font-family:Arial, Helvetica, sans-serif; font-size:16px; color:#FFFFFF; background-color:#000000; }
		a{ color:#AAAAAA; text-decoration:underline; }
		a:hover{ color:#FFFFFF; text-decoration:underline; }
	</style>
</head>
<body>
<div id="panodiv" 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>
<script>
  var viewer = createPanoViewer({swf:"Talaia.swf",target:"panodiv"});
  
  viewer.useHTML5("whenpossible");
  
  if( viewer.isDevice("iPhone|iPod|iPad") )
    viewer.addVariable("xml", "tour.xml");
  else
    viewer.addVariable("xml", "Talaia.xml");

  viewer.embed();
</script>
<script src="tour.js"></script>
</div>
</body>
</html>

It would like to use the HTML5 only for iPhone|iPod|iPad devices but doesn't work ^^
Someone have an idea, I can't get it to work ^^
Thanks in advance !!
Best regards.
My website: www.eboovisite.com, See me also on www.Viewat.com, Facebook and Twitter

Posts: 1,850

Occupation: Virtual Tours - Photography - Krpano developer

  • Send private message

2

Wednesday, April 13th 2011, 5:06pm

probably, viewer.useHTML5("whenpossible");


whats that about?
You're already using the idevice.
KRPano Developer: Portfolio ::Gigapixel Tagging Solutions - Porfolio 2 :: Facebook :: Twitter :: reddit.com/r/VirtualTour

Yomas

Intermediate

  • "Yomas" started this thread

Posts: 190

Location: Anglet, France

  • Send private message

3

Wednesday, April 13th 2011, 5:13pm

Okay ^^
Stupid I am ^^
Works perfectly now !!
Thanks a lot !!!!
My website: www.eboovisite.com, See me also on www.Viewat.com, Facebook and Twitter

Similar threads