Streamsound on mobile

  • Hi guys! Has there been any recent change in the way the browser interprets sound? I have this Tour where in desktop browser is working fine, but on mobile the sound is streamed only after you change the scene. Before the sound was executed after a first interaction like panning the scene. Is there anything to resolve this?

  • Hi Insideplaces,

    try this code, just paste it into your XML file.

    I used it for a Tour, the music starts with the first interaction in the panorama.
    On the Destop as well as on the mobile phone.

    I hope it works the same way for you.

    best regards,

    Woiferl


    Code
    <!-- startup action - load the first scene with sound -->
    	<action name="startup" autorun="onstart">
    		if(startscene === null OR !scene[get(startscene)], copy(startscene,scene[0].name); );
    		loadscene(get(startscene), null, MERGE);
    		if(startactions !== null, startactions() );
    		playsound(bgsnd, sounds/your_sound.mp3, 0, 0.5);		
    	</action>

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!