W3C home > Mailing lists > Public > public-media-capture-logs@w3.org > June 2018

Re: [mediacapture-main] I want enumerateDevices() filter argument. :-)

From: Harald Alvestrand via GitHub <sysbot+gh@w3.org>
Date: Mon, 18 Jun 2018 07:38:46 +0000
To: public-media-capture-logs@w3.org
Message-ID: <issue_comment.created-397967472-1529307524-sysbot+gh@w3.org>
what's wrong with 
```
navigator.mediaDevices.enumerateDevices()
.then(list) { return list.filter(dev => dev.kind='videoinput') };
```
? (apologies for errors in Javascript syntax)

-- 
GitHub Notification of comment by alvestrand
Please view or discuss this issue at https://github.com/w3c/mediacapture-main/issues/522#issuecomment-397967472 using your GitHub account
Received on Monday, 18 June 2018 07:38:49 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:27:33 UTC