Sie sind nicht angemeldet.

1

Dienstag, 11. Februar 2020, 12:10

Loading or Preloader

Is there a preload available for krpano? When our tour is first opened the screen is BLACK while the panos & content is loaded. http://360.nautique.tv/L45

We have written a preload script but this is not doing what we require as there is still black screen time after the preloaded completes.

Look forward to some feedback. - Example - http://360.nautique.tv/L45

Tuur

Erleuchteter

Beiträge: 3 839

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

2

Dienstag, 11. Februar 2020, 13:37

Hi,

for me, in the Netherlands, it works perfect. No black screen.
Maybe you can tell us when, in the code, or on what call you 'Kill' the 'loader'?

Tuur *thumbsup*

Beiträge: 1 117

Wohnort: Poland, Europe

Beruf: krpano developer : virtual tours : the cms4vr owner

  • Nachricht senden

3

Dienstag, 11. Februar 2020, 13:43

Hi hazzbo

This preloader works perfect.

Hi Tuur

HTML:

Quellcode

1
<div id="loadinginfo" style="position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);padding:10px;pointer-events:none;z-index:2;"><img src="plugins/loader.gif"></div>


XML:

Quellcode

1
2
3
4
5
6
    <action name="removepreloader" type="javascript" autorun="onstart"><![CDATA[
        var loadinginfo = document.getElementById('loadinginfo');
        if(loadinginfo !== null || loadinginfo !== undefinded) {
            loadinginfo.style.display='none';
        }
    ]]></action>



or simpler:

Quellcode

1
jscall('document.getElementById("loadinginfo").style.display="none";');



*thumbup*
Your own professional, online cloud tool for creating virtual tours - www.cms4vr.com

facebook page :: youtube :: wiki.cms4vr.com

cms4vr team *thumbsup*

Tuur

Erleuchteter

Beiträge: 3 839

Wohnort: Netherlands

Beruf: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Nachricht senden

4

Dienstag, 11. Februar 2020, 13:52

Hi,

i use something similar here:
https://krpano.com/forum/wbb/index.php?p…&threadID=17299

i 'Kill' the loader 'onvideoready'..

Tuur *thumbsup*