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 22269 - getSourceInfos should be asynchronous (and named getSources)
Summary: getSourceInfos should be asynchronous (and named getSources)
Status: RESOLVED FIXED
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: Adam Bergkvist
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-04 21:04 UTC by Dominique Hazael-Massieux
Modified: 2014-01-22 09:31 UTC (History)
5 users (show)

See Also:


Attachments

Description Dominique Hazael-Massieux 2013-06-04 21:04:01 UTC
See thread starting at http://lists.w3.org/Archives/Public/public-media-capture/2013Jun/0034.html
Comment 1 Justin Uberti 2013-06-05 21:58:58 UTC
The current proposed name is MediaStreamTrack.getSources().
Comment 2 Justin Uberti 2013-08-07 19:27:52 UTC
The current editor's draft still says getSourceInfos() and is synchronous. Editors, can we update the spec to have the agreed async behavior?

Also, it'd be nice to add some clarity about "label" authorization:
http://dev.w3.org/2011/webrtc/editor/getusermedia.html#widl-SourceInfo-label

Spec says "If the application is authorized to get info from this source"; we should spell out that that means that the user has authorized a previous getUserMedia() call.
Comment 3 Harald Alvestrand 2013-09-16 12:13:07 UTC
The reason for the language about label is that I did not want to tie this to getUserMedia, since we also have requestPermission; it should point at the concept of authorization, not which mechanism was used to grant authorization - more mechanisms may be added in the future.

But please, let's keep the concerns separate, we can raise a new bug for the label language if we need to.
Comment 4 Adam Bergkvist 2013-09-17 06:40:44 UTC
Proposed fix:

https://github.com/fluffy/webrtc-w3c/commit/0a9105e06c8d66548ed93bad33910d08e9be2883

Should the "result object" still be named SourceInfo after we've renamed the method (getSourceInfos() -> getSources())?
Comment 5 Adam Bergkvist 2013-10-17 11:25:49 UTC
Fixed in Editor's draft v20131017
Comment 6 Damon Oehlman 2014-01-22 09:09:27 UTC
From having a read of the editors draft, it seems that all references to either MediaStreamTrack.getSources() or MediaStreamTrack.getSourceInfos() have been removed (apart from the change history).

Is this correct?
Comment 7 Adam Bergkvist 2014-01-22 09:16:43 UTC
We added functionality to enumerate output devices as well and renamed the function to getMediaDevices (it's located on the navigator object).

http://dev.w3.org/2011/webrtc/editor/getusermedia.html#enumerating-devices
Comment 8 Damon Oehlman 2014-01-22 09:31:54 UTC
Cool - thanks for the clarification.