in which version the polygon hotspots is available for HTML5 ?

  • I m come from China
    my english is poor,but read the following please,I need help.

    I want to add polygon hotspots on my pano and my KRpano version is 1.18.

    the notes of krpano 1.18 released :

    • Improved HTML5 Support
      • Panoramic video support for HTML5
        • Better performance and higher quality than Flash in many cases.
        • Free seeking during loading.
        • Works on mobile devices with WebGL support (iOS 8, Android Chrome, Android Firefox). Has a special iPhone support (normally panoramic video wouldn't be possible in the iPhone browser due iOS limitations).
        • New videointerface skin with many new features - direct seeking, video quality changing, projection menu, mobile support, flat-view fallback with moving and zooming when there is no WebGL support.
      • Support spherical and cylindrical panoramic images in HTML5 (with WebGL) and dynamic transitions between spherical and flat projection.
      • Polygonal hotspot support.
      • Contextmenu for touch devices.
      • Styleable Contextmenu.
      • showtext() support.
      • Gyro support for Android Chrome, Android Chrome and Windows Phone.
      • Improved mobile devices / browser support.
      • Improved pano rendering and blending.


    The third means krpano 1.18 is supports the polygon hotspots for html5


    But when i write this :
    <script>
    embedpano({swf:"viewer/krpano.swf", xml:"tour-cross.xml", target:"pano", html5:"prefer", passQueryParameters:true});
    </script>

    into my HTML code,the polygon hotspot can't show in the pano

    when i write this:
    <script>
    embedpano({swf:"viewer/krpano.swf", xml:"tour-cross.xml", target:"pano", flash:"prefer", passQueryParameters:true});
    </script>
    into my HTML code,the polygon hotspots can show in the pano
    why?
    here is the way i added polygon hotspots;

    <hotspot name="length"
    keep="false"
    visible="true"
    enabled="true"
    handcursor="true"
    capture="true"
    blendmode="normal"
    alpha="1.0"
    autoalpha="false"
    fillcolor="0xFF0000"
    fillalpha="0.5"
    borderwidth="3.0"
    bordercolor="0xFF0000"
    borderalpha="1.0"
    z-index="20"
    onclick="aaaa()"
    >
    <point ath="0" atv="0" />
    <point ath="30" atv="30" />

    </hotspot>

    If polygon hotspots are supported for html5 in 1.18 version ,why i can't add the polygon hotspots on my pano which is prefer for html5?

    ps: my KRpano version is 1.18.

    thank for reading ,my english is poor.

    any help please? *confused*

    Edited 4 times, last by nihaowusir (June 25, 2015 at 8:07 AM).

  • You need more than two points for html5.

    Also you should use krpano 1.19 - Pre Release 2 instead since it's not quite backwards compatible and you'll have to upgrade anyway.

    Thank you for reply.

    Are two points can't show for html5 ? because two points can show for flash.

    And you mean that krpano 1.19 is supports polygon hotspots for html5 ?

    I tried krpano 1.18.4 ,it still not work.

    But an example shows that it should be work
    https://krpano.com/examples/118/e…textstyles.html

    I know it's about 2:00 in USA,thank you a lot!

  • Right. It's a known issue. Maybe fixed in the future. Use three points or fake your line with four points close.

    "Are two points can't show for html5 ? because two points can show for flash.
    "

    Yes, it also works, but 1.19 has a better parser. More complex code can be created and some actions/coding styles fail in the new parser.. so just use the new one anyway.

    "And you mean that krpano 1.19 is supports polygon hotspots for html5 ?
    "


    2am is nice and quite without children!

    "I know it's about 2:00 in USA,thank you a lot!""

  • I will try it,thank you for that.

    But you still need sleep, go to bed and get some rest.
    Good night! *g*

  • Thank you! It works!

Participate now!

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