You are not logged in.

igor.socha

Intermediate

  • "igor.socha" started this thread

Posts: 177

Location: Tirol, Austria

Occupation: Photographer

  • Send private message

1

Saturday, March 24th 2012, 9:57am

html5

Hi,
Do I really need to buy iPad or iPhone for testing html5 panoramas, or is there some other solution? iphone-ipad-simulator.html from krpano examples does not work ok with swfaddress plugin for example, but as for iDevices, I can see no other use for me than testing a panoramas. And for some little testing, just few times in a week, it seems to me quite an expensive toy (especially here, in Europe). Are there some other possibilities, like android based phones etc. which could serve for the same purpose and would display html5 virtual tour in the same way? Or there is absolute necessity to own Apple iPad or iPhone?
Thanks a lot!
Best regards,
Igor Socha

2

Saturday, March 24th 2012, 10:39am

Hey Igor,

you could buy an older iPod touch to build and test a tour. My first HTML5-tour were build and tested on the very first iPod touch ever released, which is now available for as low as 30€ on eBay ;-) Even the much better and faster 2nd-Generation iPod touch is available for around 50€ sometimes.

Best regards
Nupsi

igor.socha

Intermediate

  • "igor.socha" started this thread

Posts: 177

Location: Tirol, Austria

Occupation: Photographer

  • Send private message

3

Saturday, March 24th 2012, 10:45am

Hi Nupsi, thanks for the answer!
Hey Igor,
you could buy an older iPod touch to build and test a tour. My first HTML5-tour were build and tested on the very first iPod touch ever released, which is now available for as low as 30€ on eBay ;-) Even the much better and faster 2nd-Generation iPod touch is available for around 50€ sometimes.
Nupsi

Really? So it is not only multimedia player? ANd how can I load webpage with it? It has some WIFI or? Thanks again!
Best regards,
Igor Socha

Zephyr

Professional

Posts: 994

Location: Netherlands

Occupation: Web developer

  • Send private message

4

Saturday, March 24th 2012, 11:20am

you can try running it in safari and set the useragent to ipad. http://krpano.com/iphone/#testonsafari its not 100% accurate, but mostly is.
3d childrens game using krpano Game
Minify your xml with my krpano XML Compressor
Krpano XML Parsing Error Checklist
Available for hire (krpano xml, javascript, actionscript, flash, php and ipad plugins).

igor.socha

Intermediate

  • "igor.socha" started this thread

Posts: 177

Location: Tirol, Austria

Occupation: Photographer

  • Send private message

5

Saturday, March 24th 2012, 11:28am

you can try running it in safari and set the useragent to ipad. http://krpano.com/iphone/#testonsafari its not 100% accurate, but mostly is.

Thanx for the answer, I´ve tried it already several times. Unfortunately doesn´t help. Even I can see all the buttons, which are meant to be visible only on desktops...
Best regards,
Igor Socha

6

Saturday, March 24th 2012, 1:13pm

Hi,

Quoted

Or there is absolute necessity to own Apple iPad or iPhone?
no, a real device is not absolute necessary, but I would recommend one of course - real devices are always a bit different.
Personally I think the best device for testing would be an iPad 1 or 2, but iPhone or iPod Touch would work too - I'm also using a iPod Touch 2G with iOS 3.1.3 for testing as low-end device, but the iPod Touch is much slower than all other iOS devices, so the other devices are making more 'fun' .


About the testing with Safari and UserAgent - the krpanoJS viewer itself doesn't care about the current UserAgent, it detects the device directly, so even with UserAgent=iPhone or iPad the Viewer will detect that it is still running on Desktop. Only the krpano embedding script itself is caring about the UserAgent - the script uses the UserAgent for choosing which viewer to embed.

For direct device testing on Desktop there is the simulatedevice embedding setting (the iphone-ipad-simulator.html example is using that) - when is is set, then the viewer will behave like on that device (with one exception - the mouse controlling).
See here:
http://krpano.com/docu/html/#startupvars.simulatedevice

e.g. here a html embedding example with iPad-Simulation:

Source code

1
2
3
4
5
6
7
8
9
<script>
  var viewer = createPanoViewer({swf:"krpano.swf",target:"panodiv"});
  
  viewer.useHTML5("always");
  viewer.addVariable("simulatedevice", "iPad");
  viewer.addVariable("xml", "...");

  viewer.embed();
</script>


Best regards,
Klaus

igor.socha

Intermediate

  • "igor.socha" started this thread

Posts: 177

Location: Tirol, Austria

Occupation: Photographer

  • Send private message

7

Saturday, March 24th 2012, 1:27pm

Hi Klaus and thanx for the reply.
I´ve used iphone-ipad-simulator.html for testing my html5 functionality. However, after we´ve implemented swfaddress plugin, the virtual iPhone/iPad window is filled with black :( My friend has tested the project for me and it works OK on iPad, but here I can´t see anything.
Thanx
Best regards,
Igor Socha

8

Saturday, March 24th 2012, 1:46pm

Hi,

try it different - don't use the phone-ipad-simulator.html - just adding/using the - viewer.addVariable("simulatedevice", "iPad"); - in your original html,

best regards,
Klaus

igor.socha

Intermediate

  • "igor.socha" started this thread

Posts: 177

Location: Tirol, Austria

Occupation: Photographer

  • Send private message

9

Saturday, March 24th 2012, 2:14pm

Hi,

try it different - don't use the phone-ipad-simulator.html - just adding/using the - viewer.addVariable("simulatedevice", "iPad"); - in your original html,

best regards,
Klaus


ok, thanx.
Best regards,
Igor Socha

igor.socha

Intermediate

  • "igor.socha" started this thread

Posts: 177

Location: Tirol, Austria

Occupation: Photographer

  • Send private message

10

Saturday, March 24th 2012, 2:25pm

yes, now it works. Thank U!
Best regards,
Igor Socha