Refactoring MediaPlayer.