You are not logged in.

hazzbo

Beginner

  • "hazzbo" started this thread

Posts: 13

Location: South Africa

  • Send private message

1

Tuesday, February 11th 2020, 12:10pm

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

Sage

Posts: 3,266

Location: Netherlands

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

  • Send private message

2

Tuesday, February 11th 2020, 1:37pm

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*
http://www.virtualtuur.com
Skype:studiotuur

spacerywirtualne

Professional

Posts: 955

Location: Poland, Europe

Occupation: krpano developer : virtual tours

  • Send private message

3

Tuesday, February 11th 2020, 1:43pm

Hi hazzbo

This preloader works perfect.

Hi Tuur

HTML:

Source code

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:

Source code

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:

Source code

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



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

facebook page :: youtube

cms4vr team *thumbsup*

Tuur

Sage

Posts: 3,266

Location: Netherlands

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

  • Send private message

4

Tuesday, February 11th 2020, 1:52pm

Hi,

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

i 'Kill' the loader 'onvideoready'..

Tuur *thumbsup*
http://www.virtualtuur.com
Skype:studiotuur