Refactoring MediaPlayerCallback