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 08:33:49 -0600
To: Stefan HÃ¥kansson LK <stefan.lk.hakansson@ericsson.com>, Peter Thatcher <pthatcher@google.com>, Randell Jesup <randell-ietf@jesup.org>
Cc: "public-webrtc@w3.org" <public-webrtc@w3.org>
Message-ID: <56BDED4D.9070506@nostrum.com>
On 2/12/16 06:59, Stefan HÃ¥kansson LK wrote:
> We also need to clarify what would happen if both maxWidth/Height and
> scaleResolutionBy are set (and are contradicting in some way).

Sure, but I think this is easy. There are really only a handful of 
options here, and I would argue that all but one of them are either 
nonsense or unnecessarily antagonistic to developers.

 1. If in conflict, do something punitive, like ignoring both,
    generating an error, or discarding the stream.
 2. If in conflict, scaleResolutionDownBy wins
 3. If in conflict, max{Height,Width} wins

#1 makes things unnecessarily difficult for developers.

#2 amounts to "ignore max{Height,Width} when scaleResolutionDownBy is 
set", which applications can simulate themselves by not setting 

#3 can be used to satisfy the pretty sensible restriction of "I'd like 
this stream to be half the size of the main stream, but it should under 
no circumstances be taller than 320 pixels."

Received on Friday, 12 February 2016 14:35:05 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:18:13 UTC