At least in WebKit browsers, when the resolution of a video stream changes, the corresponding video
element triggers a resize
event. Is there any documentation available on this? Or any references or discussions? I haven't been able to find anything.
This is part of the HTML standard: https://html.spec.whatwg.org/multipage/media.html#dom-video-videowidth
Whenever the natural width or natural height of the video changes [...]
fire an event named resize at the media element.