Weird sound behavior on iPad

  • I want to start a scene in silence and toggle sound on/off with a button.
    When the scene starts there is also an info box which must be clicked away.
    My problem now is, that the sound will start playing as soon as the infobox is clicked away.
    Of course there is no trigger for sound on the infobox, just an alpha tween for the togglesound button.
    I suspect that this is a default behavior of the ipad or am I doing something wrong here?
    On my desktop everything runs as expected.

    Thank you
    Jürgen

  • onloaded="playsound(shuttle_launch,sound/shuttle_launch.mp3,0);

    its because of this. you have the sound set to onloaded. so soon as the sound plugin is ready it wants to start playing the sound. on an idevice it still needs user interaction to play so soon as the user does anything the sound will start. remove the onloaded from the plugin and put this code in the ondown or onclick of the intro message to have it start the sound. if you dont want it on the intro box put it on the sound button.

    playsound(shuttle_launch,sound/shuttle_launch.mp3,0);

Jetzt mitmachen!

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