Using video analysis and real time player data to optimize adaptive streaming