You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

  • "bernardcustard" started this thread

Posts: 4

Location: VLC

Occupation: photographer

  • Send private message

1

Tuesday, April 11th 2017, 2:22pm

Guys can i delay the audio start up in VR mode?

I´m wondering if i can delay or how to delay it because if the customer has to put the glasses and watch the content i would like to delay everything until X seconds. Do i have to put after preloadSounds(); wait 10s; or something like that. No idea of how to do it.


<include url="%FIRSTXML%/xxx_skin_vr.xml"/>
<!-- Core actions -->
<include url="%FIRSTXML%/xxx_core_vr.xml"/>
<!-- Tour Messages -->
<include url="%FIRSTXML%/xxx_messages_en.xml"/>

<action name="startup">
preloadSounds();

if (s !== null, if (startscene === null, set(startscene, get(s));); );
if (startscene === null,
set(startscene, pano3911);
);
mainloadsceneStartup(get(startscene));
if (h !== null,
if (v !== null,
if (f !== null,
lookat(get(h), get(v), get(f));
,
lookat(get(h), get(v));
);
,
if (f !== null,
lookat(get(h), get(view.vlookat), get(f));
,
lookat(get(h), get(view.vlookat));
);
);
,
if (v !== null,
if (f !== null,
lookat(get(view.hlookat), get(v), get(f));
,
lookat(get(view.hlookat), get(v));
);
,
if (f !== null,
lookat(get(view.hlookat), get(view.vlookat), get(f));
);
);
);
</action>

Thanks in advance. *huh*

spacerywirtualne

Professional

Posts: 866

Location: Poland, Europe

Occupation: krpano developer : virtual tours

  • Send private message

2

Wednesday, April 12th 2017, 9:06pm

Hi

Use this action:

Source code

1
delayedcall(10, preloadSounds());


best regards
Piotr
You own online, cloud tool for creating virtual tours - www.cms4vr.com

facebook page :: facebook group :: youtube

cms4vr team *thumbsup*

Umalo

Professional

Posts: 1,047

Location: Osijek, Croatia, EU

  • Send private message

3

Wednesday, April 12th 2017, 11:23pm

I would never suggest to hardcode delay before starting e.g. sound. What if customer need 30 second to wear glasses? What if network connection is slow and scene need 20 seconds to load....
Why not giving user option of button where VR would be started and then sound initiated?

Just saying...