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*

  • 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...

Participate now!

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