I'm making a feature that exposes iframe code for our users can use it to embed the video on their sites and want to do it as youtube does.
The problem is most of the time the size of the iframe that youtube generates for me is 560x315. But sometimes, it is 1280x720. So how youtube decides the size of the iframe that will be generated? Depend on the resolution or screen size or something.