Starting music on CocoonJS/iOS?

  • Hello all,

    I know there have been a few issues reported about audio and music after exporting with CocoonJS in the past, but I don't recall anything like what's happening to me right now <img src="smileys/smiley5.gif" border="0" align="middle" />

    Basically, once I built the project in XCode and run it on my device, even if I have an action to start playing a music file in the OnStart of layout event, the music in each layout doesn't play till I touch the screen (anywhere, without necessarily triggering another event).

    Did anyone experience something like this? Did you manage to find a solution? Eventually, is there any way to "simulate" a touch event without actually having any so I can start the music?

    I'm using the latest r150 (but the problem was already there in r149 the first time I tried exporting) and testing on an iPad 2 with iOS 6.1.

    Thanks in advance for any ideas!   <img src="smileys/smiley1.gif" border="0" align="middle" />

  • Can you provide us a .capx of this issue? That would be great for find a solution. <img src="smileys/smiley1.gif" border="0" align="middle" />

  • ludei we've also got the same issue. I can't reproduce though, which is frustrating. roberto can you let me know if you can repro with a minimal .capx?

    Just to confirm, the issue doesn't occur on Android, only on iOS, and I can't seem to repro with just a basic .capx.

  • Thanks for the replies. I'm trying to replicate with a minimal capx. If not, I'll send ludei a link to download the full capx of the game.

    Cheers,

    Roberto

  • Ok, while not really "minimal", I reduced the game to the splash screen and a linked credits screen, enough to test this and the issue is still there:

    i.e. the music should start with the layout and then proceed playing without interruptions between the two screens (without restarting every time we go back and forth). The latter part works as expected but the music is triggered only when we touch the screen anywhere and not when the splash screen layout starts.

    @ludei: I'm sending you a link to download the capx right now.

    Thanks and all best!

    Roberto

  • Hi folks! I am having the same bug with my game. Any solutions? It started after the newest CocoonJS (iOS) update, before that all the sounds worked fine.

  • I just tried recompiling my game after the latest CocoonJS update but the bug is still there, unfortunately.

  • Hi! I have the same problem when I launch my game in iOS launcher. But I worked around this problem by putting all audios files from Music folder to Sounds folder under construct 2. And then my music plays without the need to touch the screen.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • it's not funny(( such bad problems may affect the Construct2 and Ludei                   <img src="smileys/smiley7.gif" border="0" align="middle" />

    <img src="smileys/smiley19.gif" border="0" align="middle" /> of this problem for my game will end (((

  • Hi! I have the same problem when I launch my game in iOS launcher. But I worked around this problem by putting all audios files from Music folder to Sounds folder under construct 2. And then my music plays without the need to touch the screen.

    This seems to work for me as well! Off to make a new build now! Thanks!!

  • Hey, nice find! <img src="smileys/smiley41.gif" border="0" align="middle" />

  • Hi! I have the same problem when I launch my game in iOS launcher. But I worked around this problem by putting all audios files from Music folder to Sounds folder under construct 2. And then my music plays without the need to touch the screen.

    The above works for me as well. I also had the problem when previewing the game in the iOS browser (Safari), not just when exporting to CocoonJS (in the browser the music still doesn't start on the start of the layout, I have to tap somewhere in the window).

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)