[whatwg] Reporting mid-stream resolution change on <video>

Ami Fischman fischman at chromium.org
Thu Dec 12 10:13:05 PST 2013

Today the <video> tag exposes video{Width,Height} attributes that allow the
page to discover the resolution of the playing media once metadataloaded
has fired.  However there is no way for the page to find out that the media
resolution has changed mid-stream (short of polling the tag constantly,
which is obviously unappealing).

Examples where mid-stream resolution change can happen include:
- WebRTC up/down-scaling a video stream at the source to adhere to
available bandwidth or other requirements
- MSE shifting between quality levels of source material
- Static/VOD/classic video files that change resolution mid-stream b/c of
different source material being concatenated together.

One way to enable this would be to add a "metadatachange" event to the list
of media elements events (

(this has come up recently in a public-webrtc
and previously in private discussions)


More information about the whatwg mailing list