W3C home > Mailing lists > Public > public-webrtc@w3.org > February 2016

Re: maxHeight and maxWidth

From: Adam Roach <adam@nostrum.com>
Date: Fri, 12 Feb 2016 16:45:09 -0600
To: Peter Thatcher <pthatcher@google.com>, Adam Roach <abr@mozilla.com>
Cc: Randell Jesup <randell-ietf@jesup.org>, "public-webrtc@w3.org" <public-webrtc@w3.org>
Message-ID: <56BE6075.2020601@nostrum.com>
On 2/12/16 16:10, Peter Thatcher wrote:
> ​ But seeing that code does give me an idea for something even better; 
> add an event to a video track: onresolutionchanged. Then, whenever the 
> video track's resolution changes, the Javascript can reset the scale:
>
> track.onresolutionchanged = function(evt) {
>   var params = sender.getParameters();
> params.encodings[1].scaleResolutionDownBy = evt.height / 90;
> sender.setParameters(params);
> }
>
> ​It has the downside that a frame or two of the old scale might escape.

Yeah, I almost proposed this as an alternative, but identified the race 
and found it to be unacceptable.

Doing this pushes the problem down the constituency priority chain from 
implementors all the way to authors and users. And, make no mistake 
here: you're proposing user-visible glitches. This is exactly the wrong 
direction.

I wonder if there's some way to hook into Media Source Extensions that 
would allow the apps to perform these kinds of changes on a frame-exact 
basis. Anyone here sufficiently familiar with that spec to be able to 
answer?

/a
Received on Friday, 12 February 2016 22:46:23 UTC

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