Audio on Android with PhoneGap

Discussion and feedback on Construct 2

Post » Tue Apr 03, 2012 8:55 am

Hello !

I have to congratulate the developers for this wonderful program, wich I think is the best for game design, everything I thinked there was for me to use.I am finding, however, problems with sound on the android. The sound is not playing at all.

I have attached a ogg with SystemOnstart Play a sound with loop, and also I attached a sound with a colision. They work absolutely fine on browser on the windows.

Neither with the Html5 (webview) or with the phonegap I managed to get sound to play on android, I keep getting an error "attempt to get valid duration without valid media player" on my eclipse console (graphics play ok). Please someone help me with this, I am seriously considering buying this software but how can I use sound ?
B
2
Posts: 3
Reputation: 331

Post » Tue Apr 03, 2012 11:03 am

To help with the debug, do you have the same problem with an mp3 ?
B
33
S
9
G
6
Posts: 709
Reputation: 6,704

Post » Tue Apr 03, 2012 3:20 pm

There's no file, can you share your .capx? Last I tried audio played fine on Android via PhoneGap. Is there any reason you're not including the .m4a btw?
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,478

Post » Wed Apr 04, 2012 12:35 am

Thank you for the replies !

Here is the capx it is made with the new beta, ( I also tested with the last stable but not worked too )

http://www.twentysound.com/test1.capx

As you can see its a simple game, on the browser it works extremely good. But on android no sound at all, just the error I mentioned. I would be very glad if someone manages to make it work with sound with phone gap on android ( If you got the working eclipse project that would be great )

Also I found a bug (But it is not important to games, what is important to games is sound) with the beta and maybe the stable too, they are generating backup files with up to 8 Gb !! Wich makes my system to freeze if I enable the backup function, take a look at that.

Thanks, I hope the best for this software !

B
2
Posts: 3
Reputation: 331


Return to Construct 2 General

Who is online

Users browsing this forum: Aphrodite, blackant, Bleenx, TELLES0808 and 10 guests