Adapted to MediaPlayer changes.