Closed esprehn closed 9 years ago
I'm unsure of the word "get" here. We don't want to faulty hint that this method "gets" the devices and access to use them (like getUserMedia() does).
Perhaps you want getDevices() or getAvailableDevices() ? Having consistency is important for developer ergonomics. :)
@esprehn I think it's the "get" part that's at issue, not "All". Personally I voted for mediaDevices.enumerate()
.
No other API uses the word enumerate like this. This is a getter, just like cache.getAll() or getPermission(), etc. You could perhaps also just call it list(), but enumerateDevices() is super weird in the platform.
It's not unheard of. http://www.w3.org/TR/ws-enumeration/#Enumerate was a first hit on googling under w3.org/TR.
And the corresponding WebMIDI operator is called "requestMIDIAccess"...
The WG has decided to respond with a proposed resolution to the Last Call comment suggesting "no change". Closing this bug for now; it may be reopened if the LC resolution process warrants reopening.
@alvestrand FYI, WS-* is the anti-pattern of standards.
mediaDevices.getAll()
is pretty clear and matches other APIs like the Cache API in SW.