-
It is hard-coded because all YouTube videos are available in a consistent set of dimensions.
Once we use an iframe for a widget, I have no way to query the dimensions of the source, and I need to know the dimensions before writing the iframe.
Widgets and iframes only work when the size is known in advance, none of the gifv/gfy formats solve this at all.
webm and mp4 are fine, we could presume the dimensions for YouTube are appropriate as the video player would resize appropriately. But this is a different thing from gifv as gifv is just a web page with multiple versions of a video on it, and the size is extremely likely not to actually be of video portrait dimensions.
If you can actually find a technical resource that solves third party embedding of videos derived from gifs that allows a URL to be translated into an embeddable iframe that includes dimensions... I'll use it.
But none of the above have that.
how do you know for youtube videos like here: https://www.lfgss.com/comments/12153952/ ?
Is it just a hardcoded value?
The world is looking more and more gifv/webm/mp4 y than it used to. I have read opinions that this is a bad thing, but I don't see it going backward.