+1 to a metadatachange event (or whatever): sounds useful for any streaming
media.
The typical answer for getting initial resolution is to listen for first
> timeupdate event and then query the <video>'s video{Width,Height}.
>
FWIW videoWidth and videoHeight are available from a loadedmetadata event
handler: see simpl.info/video and
simpl.info/pc<http://simpl.info/rtcpeerconnection> (start
and end of console log).
Sam
On 11 December 2013 19:28, Ami Fischman <fischman@google.com> wrote:
> The <video> tag seems to have no event handlers
>
>
> ?
> http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element.html#mediaeventslists many events that fire on <video>.
> The typical answer for getting initial resolution is to listen for first
> timeupdate event and then query the <video>'s video{Width,Height}.
>
>
>> Perhaps one should ask for a "videochange" event?
>>
>
> Yes, please :)
> That would be useful for static/VOD (not webrtc/gUM-related)
> mid-stream-resolution-changing videos, as well as MSE, too.
>
> Cheers,
> -a
>