You are not logged in.

Tuur

Sage

  • "Tuur" started this thread

Posts: 3,839

Location: Netherlands

Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

1

Monday, August 15th 2016, 12:16pm

device tag for tablet + mobile

Hi,

i was wondering if it possible to get a single tag that calls mobile and tablets like : device.handhold (or so)
As there is also normal, which is desktop and tablet, i find some use for a split between desktop and handhold devices.
Maybe stupid idea, or maybe i overlooked and is it already there..

Tuur *thumbsup*

2

Friday, August 19th 2016, 10:20pm

Hi,

what would be the purpose or usage case of such tag?

The layout is typically shared between desktop and tablets vs. mobile, therefore the 'normal' device (=desktop or tablet).
And for touch/mouse input detection there are the device.touch and device.mouse tags - so you could maybe use device.touch (but note - here both settings could be true the same time, e.g. on Windows touch systems).

Or use 'device.tablet OR device.mobile' as expression or devices="tablet.or.mobile" as xml devices filter.

Best regards,
Klaus

Tuur

Sage

  • "Tuur" started this thread

Posts: 3,839

Location: Netherlands

Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

3

Saturday, August 20th 2016, 12:55am

Hi Klaus,

thanks for the answer!
Yes indeed, i didn't think at all about the 'touch' and the 'mouse'... *whistling*

But

Quoted

The layout is typically shared between desktop and tablets vs. mobile, therefore the 'normal' device (=desktop or tablet).


i'm not sure about this... ok, maybe typically, but are we always typically? Or do we want always to be typically?
I am/was building this 360 video excel controlled 'grid' system, and at a moment i felt the need for a tag that was nice and short that does just calls tablets and mobiles. Like 'normal' does for desktop and tablet. And when i think about it.. <layer name="splash_help" devices="hold" bla..
Sure, devices="tablet.or.mobile" ...

It is not too much effort to do the things you describe of course, as we are used to.
And i can also imagine that it is a huge job for you to implement, when possible, but possibly hardly worth the effort for this little saving (when there is any).

In some way a tablet is also more a mobile then a desktop. touch, gyro, no hover over out etc .. other instructions.. other features..
Just a little brainstorm, a thing that crossed my mind.

Cheers!
Tuur *thumbsup*

This post has been edited 1 times, last edit by "Tuur" (Aug 20th 2016, 1:05am)


4

Saturday, August 20th 2016, 9:46am

Hi,

adding such device tag wouldn't be a huge job of course ;-), but before adding something everything should be good rethought.

E.g. first think about what a tablet is:
- iOS - an iPad of course
- Android - also easy to detect, no 'mobile' string in the user-agent
- Windows - here it becomes difficult - Windows tablets are running the same desktop software and don't allow detecting if they are tablets or desktop systems (and there are Windows systems that have mouse and touch support).

The gyro support can't be used for direct detection at startup, depending on the device it could take up 500ms until the first gyro event occurs...

Add additionally - what would be the best and most clear name of that tag? (naming is hard ;-))

Best regards,
Klaus

Tuur

Sage

  • "Tuur" started this thread

Posts: 3,839

Location: Netherlands

Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

5

Saturday, August 20th 2016, 1:25pm

Quoted

Add additionally - what would be the best and most clear name of that tag? (naming is hard ;-))


i think phones should be called phones instead of mobile, and mobile would be mobile devices, tablets and phones.
Haha.. *rolleyes*
But that would give a ship load of backwards compatibility problems i guess.
I understand the 'problem' though.
Let's just leave it.

Tuur *thumbsup*

6

Monday, August 22nd 2016, 7:22am

Hi,

I have added the device 'handheld' for the next release now (it's simply 'mobile or tablet').

Btw - for the moment you could also use - devices="no-desktop" - for the same.

Best regards,
Klaus

Tuur

Sage

  • "Tuur" started this thread

Posts: 3,839

Location: Netherlands

Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Send private message

7

Monday, August 22nd 2016, 1:50pm

Klaus,

you are too good!
Didn't expect this ;-)
no-desktop is also possible of course.

Thanks!
Tuur *thumbsup*