Update state when video ends in MediaPlayer