W3C home > Mailing lists > Public > public-media-capture@w3.org > August 2016

[mediacapture-main] What does "getSettings" return?

From: Harald Alvestrand via GitHub <sysbot+gh@w3.org>
Date: Tue, 23 Aug 2016 13:30:52 +0000
To: public-media-capture@w3.org
Message-ID: <issues.opened-172699438-1471959050-sysbot+gh@w3.org>
alvestrand has just created a new issue for 

== What does "getSettings" return? ==
In implementing getSettings(width, height), I have been faced with a 
There are 3 width/height pairs to consider:
1. The device native width/height. Given that we do cropping, this is 
not what we want.
2. The target width/height. This is a bit tricky to calculate, since 
it's not necessarily a fixed value - it is influenced by the size of 
the image from the source and the applied constraints, including 
aspect ratio, and considering that some directions may be unbounded; 
it's not clear that the answer will make sense if we just look at the 
target independent of the image from the source.
3. The frame size actually delivered (after cropping). Given the 
previous point, this may be the easiest value to return consistently -
 but it leaves us at 0x0 until the first frame arrives.

What do people think "getSettings" should return?

Please view or discuss this issue at 
https://github.com/w3c/mediacapture-main/issues/386 using your GitHub 
Received on Tuesday, 23 August 2016 13:30:59 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:26:37 UTC