MediaPlayer: added playback statuses and togglePause function.