- From: Harald Alvestrand <notifications@github.com>
- Date: Wed, 27 Jan 2016 11:55:43 -0800
- To: w3c/permissions <permissions@noreply.github.com>
Received on Wednesday, 27 January 2016 19:56:20 UTC
> + PermissionDescriptor'> > + <dt> > + DOMString deviceId > + </dt> > + </dl> > + <p>A permission covers access to the device given in the > + associated descriptor. > + </p> > + <p> > + If the descriptor does not have a deviceId, its semantic is that > + it queries for access to any device of that class. > + </p> > + <p> > + If the deviceId is the special string "*", it queries for > + access to all devices of that class, whether they exist > + at the moment or are attached at a later time. When such a The first one means that getusermedia(...) (no deviceid constraint) will succeed, but you don't know which device you're getting - there might be other cameras you don't have permission to access. The second means that getusermedia({video: {deviceId: xxx}}) will succeed as long as xxx is a legal deviceid. (it can fail for other reasons than permission, of course. I'm simplifying). But as I said, I'm not sure the extra complexity is really worth it. --- Reply to this email directly or view it on GitHub: https://github.com/w3c/permissions/pull/57/files#r51040520
Received on Wednesday, 27 January 2016 19:56:20 UTC