W3C home > Mailing lists > Public > public-webrtc@w3.org > December 2013

Re: When is the remote video resolution/size known?

From: Sam Dutton <dutton@google.com>
Date: Thu, 12 Dec 2013 10:48:52 +0000
Message-ID: <CAACxJ5ozpmXJmXDn-5V+Pc2rgpHU7EC-QHQa+Rast0Hzz72d+A@mail.gmail.com>
To: Ami Fischman <fischman@google.com>
Cc: Harald Alvestrand <harald@alvestrand.no>, "public-webrtc@w3.org" <public-webrtc@w3.org>
+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
>
Received on Thursday, 12 December 2013 10:49:48 UTC

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 15:19:37 UTC