DavidA13's Recent Forum Activity

  • One last thing to all here, the .ogg files don't make any problems on iOS for sounds, they must be there for the sound to work on other platforms but they don't "interfere" (spell?) with sounds on iOS. You just need to have m4a working files for your sounds to work on iOS, with or without .ogg counterparts... But you have to do my offline.appcache trick in my post above...

  • chrislechat: Did you verify that you m4a files are really working on your computer? Open them in iTune to test.   Also, my sounds work on iOS by doing this trick only so far: Put the m4a AND ogg files on your server (wich is standard) AND remove the m4a lines from the offline.appcache file. It works 100% for me and nothing else worked for sound on my iPad 4 and iPod Touch 4. Tiens-moi au courant Chrislechat! ; )

    Ashley: I know you said to me that removing the m4a lines from the offline.appcache file will make my game not work offline on iOS but I can assure you that's the only way it work on my iPad 4 AND iPod Touch 4. If I don't do this the sounds are working like...1 game on 3... If it would have been my MIME TYPES on the server this trick would not have make them work 100% of the time right?

    The moment I send an update of one of my game without editing the appcache file my sounds stop working...

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • ...or the game going into the background...the user leaving the game temporarly etc?

    The "on resumed", "on suspended" and "page is visible" events doesn't seem to work at all on my iPad 4 and my iPod Touch 4.

    Thanks in advance.

  • Is your text file online? If yes, then use the AJAX OBJECT to read (get) the file and to write (post) in it.

  • brett: Did you try my trick? You must include ogg AND m4a files into your project...and remove the "m4a" lines in the offline.appcache file to hear the sounds on iPod/iPhones/iPad steadily, that's the only thing that work 100% of the times for me on iOS.

  • Your own server probably don't have the MIME TYPES "configured" for .ogg and/or .m4a files.

  • sogen:

    No mention on the R119 page maybe but a sound issue was adressed between the latest stable release and the R119 one, can't remember in wich beta release exactly. Thanks for the "cache trick".

    Ashley:

    Thanks for the reply. ...and if I say you that I had the exact same problem with your link (Space Blaster), it can't be the MIME TYPES then, Am I wrong?

    Did you try to play Space Blaster for more than one game and by hitting "Refresh" between 2 games? It was really buggy the sound on my iPod Touch 4 AND my iPad 4 even with Space Blaster, for most games the sound didn't work at all, but the first one almost always worked after emptying the Safari cache.

    Thanks for the info for the offline support, for now I prefer the game to work every time with sounds online and not at all online than having the sounds just play sometimes... :( I just removed the m4a lines from offline.appcache file, not the .ogg so at least it will work offline for non-iOS users right?

  • I have no capx because it's useless for this one. I tested a lot for the last 2 weeks on differents iOS platforms to get my sounds working with differents capx. The bug is an "iOS" one not one linked to specific capx...

    Steps to reproduce:

    Removing the sounds files from the offline.appcache seems to correct the problem at 100% so far. I tried before this to empty Safari cache memory on iPad and iPod Touch, I tried to restart them to be sure the cache is empty and to change directory of my games too and nothing worked for a consistent continuously working sounds in my games on iOS, except this. (Removing the sounds files from the offline.appcache)

    I hope it'll help you and other people around here. It really work like a charm now wich is great!

    Thanks for the huge work on C2, great program!

    Browsers affected:

    Chrome: no

    Firefox: no

    Internet Explorer: no

    SAFARI on iOS: yes

    Operating system & service pack:

    iOS

    Construct 2 version:

    R119 (latest as of this post, wich was adressing sounds issues on iOS from the blog post announcing this release)

  • Hey Ashley, I found a way to make my sounds work every time and not inconsistently on iOS.

    Hoping it will help you maybe for a future update? I removed my sounds files from the offline.appcache file and it works now in every game if I hit refresh or not.   <img src="smileys/smiley1.gif" border="0" align="middle" />

    So it seems iOS don't handle very well the caching of m4a files for now...?

    Ashley/Guys, Should I post that into the bugs section?

    Thanks for the awesome program!

  • I specified my MIME type settings for m4a and it worked...one time...how can that be possible Ashley...?   <img src="smileys/smiley19.gif" border="0" align="middle" />

    I searched on the Forum and found an answer from you saying to change directory...I tried that...it worked...anotehr time...and after that 1 game on 5 approximately. I don't get how it's possible...any idea?

    I didn't update the game in-betwwen my tries, just hit "Refresh" in Safari on my iPad 4.

  • Thanks a lot for the reply Ashley!

    I'll verify that with my webhoster, sadly the server is a IIS wich means I can't add the mime type myself if I read right on the net.

    One last quick question. :) It can be this even if the sound work like 1 time on 10 or 20 in my game? (without updates to the games between the tries) Thanks!

  • Guys I need your help please, my games are not outputing sound on iPads/iPhones/iPod Touch in Safari and those are my main platforms.

    I tested it with an iPad 4 and an iPod Touchh 4, both with iOS 6.0 in Safari.

    I have the 2 file formats (ogg and m4a on the server).

    What Am I doing wrong? Do you guys succeed with audio on iOS?

    Thanks in advance.

DavidA13's avatar

DavidA13

Member since 21 Aug, 2012

Twitter
DavidA13 has 2 followers

Connect with DavidA13

Trophy Case

  • 12-Year Club
  • Popular Game One of your games has over 1,000 players
  • Email Verified

Progress

14/44
How to earn trophies