You are not logged in.

  • "Sudarchikov Andrey" started this thread

Posts: 1,081

Location: Russia, Kaliningrad

  • Send private message

1

Thursday, May 9th 2013, 10:03am

Detect viewer load possible

Hi! Klaus!
Is there a way to detect that krpano viewer can't work on some device?
I know there is isFLASHpossible and isHTML5possible
i do so

var flash = viewer.isFLASHpossible();
var htlm5 = viewr.isHTML5possible();
if(flash || html5) {
viewer.embed();
}

but it's not enough,
krpano loaded but show me error "FATAL ERROR: A browser with CSS 3D transforms or WebGL support is required".
But I want to catch this and redirect user to different html page or show my own custom message instead of viewer load with error.
Please give some advice of how to do it.
Is there a way to detect isCSS3Dpossible() or isWEBGLpossible() ?

Unsupported Devices:
Sony Xperia Play, Android 2.3.3

LG - P925, Android 2.2.2 (125)


Thanks in advance.

Andrey
VRAP - desktop VR content player based on krpano.
Common tasks in one place in one click! Discussion thread
DOWNLOAD for MAC
DOWNLOAD for WIN

2

Thursday, May 9th 2013, 11:49am

Hi,

when getting a 'FATAL ERROR' when the html5 viewer was already embedded and started - this means the 'isHTML5possible' check was okay...

but it's strange that then the message 'A browser with CSS 3D transforms or WebGL support is required' appears - the html5 viewer makes the same html5-support checks like the embedding script...

Does is only not work on these devices or generally not? (Btw - which browser were used on these devices)
Link for testing?

Best regards,
Klaus