implemented getMediaPlayer in the MainApp

just revert the commit if you think it shouldn't be like this.