How do I ...Play Sounds in iOS?

Get help using Construct 2

Post » Wed Apr 29, 2015 2:31 am

Hello all,

I have a very simple project that plays a sound when a score hits 50. Works perfectly in Android and Web form but in iOS (iPhone 4s) no sound is played. I have both ogg and m4a audio filies included in my project.

Im exporting as cordova, building in XDK (iOS build) and the sound plays in the XDK emulator. The only place the sound wont play is on the iOS device (iPhone) itself.

Any suggestions welcome. Thanks!
B
15
S
2
Posts: 229
Reputation: 1,353

Post » Wed Apr 29, 2015 9:14 am

Didnt tried xdk for ios...but sounds works well when you export throught cocoonjs and compile iOs
B
6
S
1
Posts: 52
Reputation: 500

Post » Wed Apr 29, 2015 4:16 pm

Thanks aash - anybody else have any other ideas?

Im reliant on admob and so have to use XDK. iOS sound used to work when Ejecta was around but now it does not with the 'new' cordova export.
B
15
S
2
Posts: 229
Reputation: 1,353

Post » Wed Apr 29, 2015 5:00 pm

btw you can also add admob in cocoonjs build but you have to add cocoonjs plugin in c2 and then compile using premium account of cocoonjs....if you dont have that i can help you...add me on skype if needed...

skype : mehta.himanshu14
B
6
S
1
Posts: 52
Reputation: 500

Post » Wed Apr 29, 2015 6:09 pm

aashcool07 wrote:btw you can also add admob in cocoonjs build but you have to add cocoonjs plugin in c2 and then compile using premium account of cocoonjs....if you dont have that i can help you...add me on skype if needed...

skype : mehta.himanshu14



AFAIK you cannot use Admob natively in cocoonjs. You have to use MoPub and mediation which is problematic.

I would appreciate more details though. Can you PM me?
B
15
S
2
Posts: 229
Reputation: 1,353

Post » Wed Apr 29, 2015 7:28 pm

problematic for what i have been using mopub by connecting with admob from ages now...and cocoonjs makes build with less mb as compare to xdk and fps is also good than xdk.

i cant pm dont have that much rep
B
6
S
1
Posts: 52
Reputation: 500


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 13 guests