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

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

From: Harald Alvestrand <harald@alvestrand.no>
Date: Wed, 11 Dec 2013 10:06:53 +0100
Message-ID: <52A82B2D.7090503@alvestrand.no>
To: public-webrtc@w3.org
On 12/10/2013 10:46 PM, Iñaki Baz Castillo wrote:
> 2013/12/10 Iñaki Baz Castillo <ibc@aliax.net>:
>> So the real question is: is there any MediaStream or MediaStreamTrack
>> to detect video resolution/size change?
> Sorry I meant:
>
> Is there any MediaStream or MediaStreamTrack *event* to detect video
> resolution/size change?
>
> IMHO we need it. Otherwise it becomes hard to draw a video element (in
> certain cases like mine...).
>
>
>
>
The only place I know of to get the size of the incoming video is on the 
<video> tag itself.

The <video> tag seems to have no event handlers, but the HTML5 
MediaController seems to have a lot of them, including "volumechange" 
and "canplay".

Perhaps one should ask for a "videochange" event?
Received on Wednesday, 11 December 2013 09:07:25 UTC

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