This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 27077 - Cababilities need to clearly specify that they are constant over time
Summary: Cababilities need to clearly specify that they are constant over time
Status: RESOLVED MOVED
Alias: None
Product: WebRTC Working Group
Classification: Unclassified
Component: Media Capture and Streams (show other bugs)
Version: unspecified
Hardware: PC Linux
: P2 normal
Target Milestone: ---
Assignee: public-media-capture@w3.org
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-10-16 13:07 UTC by Harald Alvestrand
Modified: 2015-01-09 08:14 UTC (History)
0 users

See Also:


Attachments

Description Harald Alvestrand 2014-10-16 13:07:45 UTC
From Jan-Ivar, in bug 25777:

While examples are nice, I would argue they're no replacement for specification.

Are capabilities accurate?

While it is possible to deduce from the applyConstraints algorithm [1] that capabilities are allowed to be a super-set of what the UA supports, I find no mention of this where Capabilities is defined [2].

I've read the definition a couple of times, and even though it uses the word "subset" four times in one paragraph, it still seems to equate what the capabilities read with what "the UA supports", which doesn't allow for capabilities to be either-or (e.g. super framerate OR super resolution).

I think it would help implementations if the spec stated that returned capabilities must a set or super-set of what the UA supports.

Are capabilities constant?

I find conflicting text on this in the spec:

"The UA may choose new settings for the Capabilities of the object at any time. When it does so it must attempt to satisfy the current Constraints, in the manner described in the algorithm above." [2]

vs.

"Source capabilities are effectively constant. Applications should be able to depend on a specific source having the same capabilities for any session." [3]

[1] http://w3c.github.io/mediacapture-main/getusermedia.html#dfn-applyconstraints
[2] http://w3c.github.io/mediacapture-main/getusermedia.html#capabilities
[3] http://w3c.github.io/mediacapture-main/getusermedia.html#terminology
Add Comment
Collapse All Comments
Expand All Comments
Comment 1 Harald Alvestrand 2014-10-16 13:08:35 UTC
From Harald, on mailing list October 10:

I think the definition is intended to say that it be a superset.
That's what the example was supposed to demonstrate: even though only two resolutions are supported, the values given are ranges.

>
> Are capabilities constant?
>
> I find conflicting text on this in the spec:
>
> "The UA may choose new settings for the Capabilities of the object at any time.
> When it does so it must attempt to satisfy the current Constraints, in the
> manner described in the algorithm above." [2]

I think "new settings for the Capabilities of the object" was meant to be parsed as

(new settings for) (the Capabilities of the object)

ie it is the settings that are new. The capabilities remain unchanged.
(and I think capitalizing Capabilities here is probably misleading).
Comment 2 Harald Alvestrand 2014-11-20 15:49:32 UTC
In the quoted sentence, "Capabilities" should be "constrainable properties".

Capabilities can change - for example if a camera is plugged in or unplugged - so they're not strictly constant. But for most purposes, it makes sense to treat them as constant.

Will be covered by the consistency review/rewrite.
Comment 3 Dominique Hazael-Massieux 2015-01-09 08:14:44 UTC
Moved to https://github.com/w3c/mediacapture-main/issues/115