media.stopSound and media.pauseSound not working on Android

Hi.

I have a game that plays, stops and pauses some .mp3 files. The media calls all work as expected in the Corona simulator and on iPhone but stop and pause do not work on Android. The first play call encountered is executed and any subsequent media calls are ignored.

Any help on this one? [import]uid: 64736 topic_id: 14165 reply_id: 314165[/import]

Hi,

I think you should try use the new “audio” API. We didn’t have any audio problems using it for our Android version, the media API was quite buggy on Android though …

See here

Best,
Phil
Moving Player [import]uid: 51301 topic_id: 14165 reply_id: 52822[/import]

What about when a user presses the power button, home button or the phone hibernates?

Client reporting to me that the sound does not stop playing [import]uid: 5354 topic_id: 14165 reply_id: 63363[/import]

The newest daily builds for Android have a problem where the app won’t suspend when the user presses the power button or when the screen lock window is shown. This is why the audio won’t stop playing. This was not an issue with the release version. We plan on addressing this issue within the next couple of weeks. [import]uid: 32256 topic_id: 14165 reply_id: 63399[/import]

Hey Joshua

This is not great. I literally have an app ready to go ( for a paying client ) and this is holding up the release. I can’t use the release build as that introduces other bugs. At this point I’m stuck and the client will not be happy. It was meant to be a Halloween release. [import]uid: 5354 topic_id: 14165 reply_id: 63410[/import]

Matthew,

The release version of Corona (build #591) does not have this issue. You can build with that version instead. [import]uid: 32256 topic_id: 14165 reply_id: 63419[/import]

Along the way though after the release build you have fixed a lot of other Android bugs that would be re-introduced using the release version. [import]uid: 5354 topic_id: 14165 reply_id: 63420[/import]