Howto FS button only on Android?

Q&A about the latest versions
Post Reply
JSchrader
Posts: 141
Joined: Sat Nov 28, 2015 2:26 pm

How is it possible to have a fullscreen button to appear only on android devices?

Or the other way round if it makes it easier :-)
How do I hide a fullscreen button on ios?
User avatar
Tony
Posts: 1341
Joined: Mon Feb 15, 2010 6:54 am
Location: Adelaide, South Australia
Contact:

Hi,

It is possible but I'm pretty sure it's not possible within the software application.

In the past I've used Javascript in the index.html page to detect the iPad and iPhone and deliver a different .xml and skin.js file based on the detection.

For example if you browse to this page http://rebrand.ly/p2vr-detect on an iPhone, iPad and Desktop/Android device you will see the following results.

devices.jpg
devices.jpg (196.87 KiB) Viewed 1947 times

If you view the source of the index.html page you will see the code I used to do the detect. In the project file I have an .xml file for iPad, iPhone and Android as well as a skin for each device. Come to think of it I could have used the same skin for the iPad and Phone.

If you are using PHP there is a document in the Pano2VR site that explains how to use it https://ggnome.com/wiki/Using_PHP_to_switch_HTML5_skins

cheers,

Tony
Tony Redhead | Panoramic Photographer | mobile: +61438501002 | website: https://tonyredhead.com - https://redsquare.com | Pano2VR Tutorials: https://tonyredhead.com/pano2vr | instagram: https://www.instagram.com/tonyredhead/
JSchrader
Posts: 141
Joined: Sat Nov 28, 2015 2:26 pm

COOL! It works :-)
Thanks heaps. Life as a developer must be so easy, LOL.

As a sidenote, I remember that selecting/deselecting elements for certain devices in krpano is a LOT easier :shock:
But as there is #6 coming ... :mrgreen:
User avatar
Tony
Posts: 1341
Joined: Mon Feb 15, 2010 6:54 am
Location: Adelaide, South Australia
Contact:

Hi J,
Thanks heaps. Life as a developer must be so easy, LOL
:lol: Me developer, not in a million years. Trained as a graphic designer, started a web development company in 1997, employed a few developers but I'm not a coder!

I do a lot of Google searching and then cobble together the code snippets I find, sometimes it works sometimes it doesn't. In this case I got lucky.
As a sidenote, I remember that selecting/deselecting elements for certain devices in krpano is a LOT easier
Now there's a program that taxes my brain. I've done a couple of client projects in krpano but I use a brilliant developer to put all the assets together.

cheers,

Tony
Tony Redhead | Panoramic Photographer | mobile: +61438501002 | website: https://tonyredhead.com - https://redsquare.com | Pano2VR Tutorials: https://tonyredhead.com/pano2vr | instagram: https://www.instagram.com/tonyredhead/
Post Reply