Fix mediaplayer playback and recording