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 25247 - getCapabilities needs to decide what scope(s) it's available at
Summary: getCapabilities needs to decide what scope(s) it's available at
Status: RESOLVED WONTFIX
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-04-03 12:59 UTC by Harald Alvestrand
Modified: 2014-05-26 10:05 UTC (History)
1 user (show)

See Also:


Attachments

Description Harald Alvestrand 2014-04-03 12:59:38 UTC
It used to be that this text was what we intended to say:

" The Capabilities dictionary specifies the subset of the constrainable properties and values from the registry that the UA supports". (section 11.3)

and that it was a static method.
Now it is a method on the track, and it is said that:

"The getCapabilities() method returns the dictionary of the capabilities that the object supports." (section 11.1.2).

Obviously, if the latter is the only thing available, the example is flawed.
If the former is going to be true, there will have to be a static method, or a method on NavigatorUserMedia, that exposes the getCapabilities() accessor there.

Which should it be?
Comment 1 Harald Alvestrand 2014-05-15 13:48:02 UTC
A possibility is to have getCapabilities available at both levels - as a per-track function, telling you what you can ask this input source about, and as a per-browser function, telling you all possibilities for passing constraints to getUserMedia.

These functions need not have the same name.

One concern is that the new getCapabilities would either have to be restricted (return less or require permission) or provide additional fingerprinting surface.
Comment 2 Harald Alvestrand 2014-05-26 10:05:53 UTC
This was considered at the Media Capture TF meeting on May 19, and the WG concluded that this doesn't need to be addressed.

getCapabilities will only be available on tracks.