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

  • 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

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!