player: added resize  window of player by loaded media

used statistic object at start loading