Posts by arielei

    Hi,

    sorry, but I don't understand that case...
    For me the example as it is, is working correctly...

    About scope=local - just adding that to the original example wouldn't work because both actions (loadingpercent_startloading and loadingpercent_stoploading) are using the same variables. Here optionally also a private local scope could be used to share the variables.

    Best regards,
    Klaus

    1.20.9 original example:

    result:

    Code
    INFO: krpano 1.20.9 (build 2020-11-19)
    INFO: HTML5/Desktop - Chrome 88.0 - WebGL
    INFO: percent_text:0 [145x]
    INFO: percent_text:17
    INFO: percent_text:33 [15x]

    1.20.9 my code:

    result:

    Code
    INFO: krpano 1.20.9 (build 2020-11-19)
    INFO: HTML5/Desktop - Chrome 88.0 - WebGL
    INFO: percent_text:0 [162x]
    INFO: percent_text:17
    INFO: percent_text:33 [87x]
    INFO: percent_text:50 [30x]
    INFO: percent_text:67 [76x]
    INFO: percent_text:83 [48x]
    INFO: percent_text:100 [16x]


    1.19.10 original example result:

    since version1.2,it can't display progress' correct value.

    if action not set scope="local",it will show like:
    0%
    17%

    and then the layer (loadingpercent_text) will be hide


    link:https://krpano.com/releases/1.20.…ress/index.html

    xml:https://krpano.com/viewsource.htm…percenttext.xml

    fix code:

    code:

    krpano example:

    fix:

    LOL...Screen to Gif ,recording screen,about 7ms,more or less

    so delayedcall 100ms is ok,no scene/screen flash cross *tongue*

    but also hope klaus.krpano fix it or give some advice.now just like perfect,it not perfect.

    Code
    <layer name="load_test_container" type="container" height="100%" width="100%" bgcolor="0x3c6b05" bgalpha="1" keep="true" zorder="99">
    	<layer name="layer_load_test" url="layertest.jpg" keep="true" visible="true" height="100%" width="100%" safearea="false" onclick="set(x,-3000)"/>
    </layer>

    this is my use code,it not perfect.i set container's bgcolor like image's bgcolor.

    i still want get some way to solution this issue.


    *smile* Hi indexofrefraction,i try it,but no effect

    Code
    <layer name="load_test_container_overlay" type="container" height="100%" width="100%" bgcolor="0x000000" bgalpha="1" keep="true" zorder="100"/>
    
    
    <events name="remove_overlay" keep="true" onloadcomplete="set(layer[load_test_container_overlay].alpha,0)"/>
    
    
    <layer name="load_test_container" type="container" height="100%" width="100%" bgcolor="0x000000" bgalpha="0" keep="true" zorder="99">
    	<layer name="layer_load_test" url="layertest.jpg" keep="true" visible="true" height="100%" width="100%" safearea="false" onclick="set(x,-3000)"/>
    </layer>

    I test set layer type is container,it is ok.

    Code
    <layer name="load_test_container" type="container" height="100%" width="100%" bgcolor="0x000000" bgalpha="1" keep="true" zorder="99" onclick="set(x,-3000)" bgcapture="true"/>

    if layer type is image,it will caused this bug.it's will show adout 10+ ms scene

    below code also caused this bug

    Code
    <layer name="load_test_container" type="container" height="100%" width="100%" bgcolor="0x000000" bgalpha="0" keep="true" zorder="99">
    	<layer name="layer_load_test" url="layertest.jpg" keep="true" visible="true" height="100%" width="100%" safearea="false" onclick="set(x,-3000)"/>
    </layer>

    I found a problem with the display of the layer,the layer will show after the scene load finish.this is a bug?

    When i open the vtour,i will first see black backgroud color and then see the scene ,the last see the layer.

    1.bgcolor
    2.scene
    3.layer

    But this is not what i want.I want first see the layer,after click will see scene.
    1.bgcolor
    2.layer
    3.click-->layer-->scene

    this is my code

    attachments is my frame-by-frame recording

    Code
    var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };

    use this code on krpanoplugin,pr13 is ok ,but pr15-16,ERROR: parsing './plugins/test.js' failed:SyntaxError: Unexpected token :,what's wrong with it?

    1.link css

    Code
    <link rel="stylesheet" type="text/css" href="//cdn.materialdesignicons.com/2.8.94/css/materialdesignicons.min.css">

    2.xml code-hotspot(can't display css icon)

    Code
    <hotspot name="spot1" style="test" ath="0" atv="0" html="1235555 [span class='mdi mdi-map-marker-radius' /]" />
    Code
    <style name="test" type="text" url="%SWFPATH%/plugins/textfield.swf" backgroundcolor="0x000000" backgroundalpha="0.8" css="font-size:20px; color:#ffffff" />

    3.xml code-layer(can display css icon)

    Code
    <layer name="spot1" style="test" ath="0" atv="0" html="1235555 [span class='mdi mdi-map-marker-radius' /]" />
    Code
    <style name="test" type="text" url="%SWFPATH%/plugins/textfield.swf" backgroundcolor="0x000000" backgroundalpha="0.8" css="font-size:20px; color:#ffffff" />

    i want to use hotspot,but it can't display css icon,what's wrong?

    Quote

    initvars:{timestamp:Date.parse(new Date())},

    Quote

    <include url="test.xml?%$timestamp%" />


    The above code is very very slowly.
    ----------------------------------------------------------------------------
    The following code is working fine.

    Quote

    initvars:{timestamp:"1516535425"},

    Quote

    <include url="test.xml?%$timestamp%" />

    ---------------------------------------------------------------------------
    why?

    I want to pause the background music when the video is played.

    below is my code,when pauseonstart is false,i can not use onvideoplay event. How can I deal with it?