Sie sind nicht angemeldet.

designsubway

Anfänger

  • »designsubway« ist der Autor dieses Themas

Beiträge: 40

Wohnort: York, UK

Beruf: Graphic Designer

  • Nachricht senden

1

Montag, 4. März 2013, 16:15

Force HTML5 on Android

Hi

Is there a way to force the HTML5 version to show on Android?

The newest version of Android does not support Flash and if I set html to 'auto' I just get an error message telling me to download Flash (Google Nexus 7 - Chrome) which I cannot do.

If I set html to 'prefer' then chrome on Android displays the pano but this means that html5 is also the default for desktop browsers which isn't ideal as the Flash version on desktops usually runs much better.

Ideally I want all mobile devices to use html5 but all desktops to run the flash version (perhaps with a html5 fallback).

I am probably asking for too much but you don't get if you don't ask *smile*

2

Dienstag, 5. März 2013, 16:20

Hi,

is your krpano embedding script (swfkrpano.js) not up to date?
I ask because the html5 version should be automatically loaded on Android Chrome.

Additionally you could try such to set htm5=prefer for all Android devices and html5=auto for all other ones:

Quellcode

1
embedpano({... , html5:(navigator.userAgent.indexOf("Android") >= 0 ? "prefer" : "auto") });


Best regards,
Klaus

3

Dienstag, 5. März 2013, 16:38

Hi,

is your krpano embedding script (swfkrpano.js) not up to date?
I ask because the html5 version should be automatically loaded on Android Chrome.

Additionally you could try such to set htm5=prefer for all Android devices and html5=auto for all other ones:

Quellcode

1
embedpano({... , html5:(navigator.userAgent.indexOf("Android") >= 0 ? "prefer" : "auto") });


Best regards,
Klaus

Klaus, bingo! This will be very helpful. I wanted to achieve this, but didn´t want to set all devices to html5 prefer. Thanx!
Best regards,
Igor Socha

vasin

Schüler

Beiträge: 93

Wohnort: bangkok

Beruf: photographer

  • Nachricht senden

4

Mittwoch, 19. Februar 2014, 05:42

Hi

What file and where do you put this code into?

Thanks
Still can't view krpano on android offline.

5

Mittwoch, 19. Februar 2014, 16:30

What file and where do you put this code into?
That's the html file - more information here - but adding this would be not necessary, the latest krpano version are preferring html5 on Android by default.

Still can't view krpano on android offline.
When offline viewing is not working, then the reason is mostly related to the Browser security restrictions. What Android browser or offline-reader app are you using?

Best regards,
Klaus

vasin

Schüler

Beiträge: 93

Wohnort: bangkok

Beruf: photographer

  • Nachricht senden

6

Donnerstag, 20. Februar 2014, 01:57

Hi Klaus
Thank you for your reply.
I've tried chrome on android it doesn't work. Possiblely it needs some configuration. But couldn't figure it out. Fire fox is able to view offline but very slow both offline and online. I've tried some offline viewers(offline pages, open HTML, Offline browser)but couldn't find one that works.

7

Donnerstag, 20. Februar 2014, 11:18

Hi,

so far I know Chrome doesn't allow accessing local files for security reasons (same like Desktop Chrome).

Best regards,
Klaus

vasin

Schüler

Beiträge: 93

Wohnort: bangkok

Beruf: photographer

  • Nachricht senden

8

Sonntag, 23. Februar 2014, 06:19

Thanks
At last, I found another browser that works for offline. The boat browser.