MediaPlayer issue

Forum for the book "Beginning Android Games", see http://www.apress.com/9781430230427

MediaPlayer issue

Postby jamieamy2008 » Tue Jul 26, 2011 11:55 pm

Hey once again,
Sorry to keep bothering everyone. I have an issue, I'm making a version of mr nom and I have music on the game. Everything works fine except when I pause the game and select 'quit'. On 'quit', I put * Assets.music.stop(); * and it goes back to the main menu. Then at the main menu if I press 'start', pause the game, then when I press 'resume' the music doesn't start playing again. On resume I use *Assets.music.play();*. Everything works fine if I pause, resume, pause resume..., but the problem only starts once I press 'quit'. I want the music to stop on gameover and on pause. On pause I want the music to just resume, but on quit I want the music to stop and if you start the game over I want the music to restart. Please help if you have any ideas.

sorry if rambling
jamieamy2008
 
Posts: 14
Joined: Thu Jun 02, 2011 3:32 am

Re: MediaPlayer issue

Postby rlsl88 » Wed May 23, 2012 3:21 am

I'm seeing the same issue on a variation of Super Jumper.

I want the In-Game music to stop and play again from the beginning when you start a new game.

Any ideas why the music doesn't play again after stopping?
rlsl88
 
Posts: 11
Joined: Wed Apr 25, 2012 7:53 am

Re: MediaPlayer issue

Postby Magnesus » Wed May 23, 2012 6:02 am

I think I encountered the same problem - only I wasn't able to reproduce it later.
Magnesus
 
Posts: 1054
Joined: Sun Sep 25, 2011 3:50 pm

Re: MediaPlayer issue

Postby fmmarzoa » Wed May 30, 2012 12:09 pm

Take a look on this thread:

viewtopic.php?f=20&t=4151

It may be related.
fmmarzoa
 
Posts: 39
Joined: Sat May 12, 2012 9:46 am

Re: MediaPlayer issue

Postby fmmarzoa » Wed May 30, 2012 12:10 pm

Sorry, i didn't notice the original message where too old...
fmmarzoa
 
Posts: 39
Joined: Sat May 12, 2012 9:46 am


Return to Beginning Android Games

Who is online

Users browsing this forum: Bing [Bot] and 1 guest