[MediaPlayer] Add API to be able to cancel preparing it (#944)