SoundInterface doesn't work on iPhone. Why?

  • Hi,

    hmm... it should work (and it does on all my iOS test devices)...

    Did you touch the screen to start the sound?

    Best regards,
    Klaus

    yes, but there is no sound coming out on my iPhone :( I do know that Apple blocks autoplay sound, and I tried touching the screen and it doesn't work either

  • Just tried on iPhone 6S with latest IOS and it works as expected BUT on the krpano exemple you posted playsound is used, that means the audio file must be fully loaded before playing (not like streamsound) so if you connection is slow it can take a while before you hear anything.

  • Just tried on iPhone 6S with latest IOS and it works as expected BUT on the krpano exemple you posted playsound is used, that means the audio file must be fully loaded before playing (not like streamsound) so if you connection is slow it can take a while before you hear anything.

    Hi jeromebg !

    This is my code:

    <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() );
    preloadsound(audio/bgsound.mp3 || audio/bgsound.ogg);
    playsound(bgsound, audio/bgsound.mp3 || audio/bgsound.ogg, true, 0.75);
    </action>


    Is it correct?
    If possible can you give me an example? Thank you.

Participate now!

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