You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

Kabkee

Trainee

  • "Kabkee" started this thread

Posts: 82

Location: South Korea

Occupation: South Korea

  • Send private message

1

Wednesday, November 28th 2018, 8:02am

<mobile> and <tablet> in <image> tag

Hi,

I'm curious that <mobile> <tablet> tag is still working.

Source code

1
2
3
4
5
6
7
8
9
10
11
12
<image type="sphere" hfov="360" vfov="" voffset="0" prealign="">
    <preview url="preview_b5544a2a70d018e50adb6a38da95e11ba95cb163.jpg" /> 

    <sphere url="6000_b5544a2a70d018e50adb6a38da95e11ba95cb163.jpg"/>
    
    <mobile>
        <sphere url="preview_b5544a2a70d018e50adb6a38da95e11ba95cb163.jpg"/>
    </mobile>
    <tablet>
        <sphere url="preview_b5544a2a70d018e50adb6a38da95e11ba95cb163.jpg"/>
    </tablet>
</image>


The above code is not working.
Without <mobile> and <tablet>, it's working.

How could I use <mobile and tablet> tag properly??

2

Wednesday, November 28th 2018, 9:53am

<sphere
url.desktop="6000_b5544a2a70d018e50adb6a38da95e11ba95cb163.jpg"
url.mobile="preview_b5544a2a70d018e50adb6a38da95e11ba95cb163.jpg"
url.tablet="preview_b5544a2a70d018e50adb6a38da95e11ba95cb163.jpg"
/>

see here:
https://krpano.com/docu/xml/#devicechecksforattributes

Kabkee

Trainee

  • "Kabkee" started this thread

Posts: 82

Location: South Korea

Occupation: South Korea

  • Send private message

3

Wednesday, November 28th 2018, 10:21am


url.desktop="6000_b5544a2a70d018e50adb6a38da95e11ba95cb163.jpg"
url.mobile="preview_b5544a2a70d018e50adb6a38da95e11ba95cb163.jpg"
url.tablet="preview_b5544a2a70d018e50adb6a38da95e11ba95cb163.jpg"
/>

see here:
https://krpano.com/docu/xml/#devicechecksforattributes
WOW. Thanks :)

4

Wednesday, November 28th 2018, 11:58am

Hi,

the <mobile> and <tablet> tags are still supported, but they are supporting only <cube> images.

Using device checks - e.g. via attributes (like shown above) or the devices attribute or the if attribute - are the recommended solutions here.

Or use a multi-resolution image - then you don't need different images for different devices.

Best regards,
Klaus