Re: [mediacapture-main] Consider cross-spec device IDs

Unfortunately, "device" is used to describe all sorts of different 
things. For instance, 
[MediaDeviceInfo](https://w3c.github.io/mediacapture-main/#idl-def-MediaDeviceInfo)
 differentiates between "device" (`deviceId`) and "physical device" 
(`groupId`)!

Looking at your list:
* `groupId` is a data-less grouping token for mic and camera belonging
 to the same "physical" hardware. Not persisted to disk, but stable 
within a browser-session and **not origin-unique** (I'm surprised 
no-one's picked up on this fingerprinting issue). Did you mean 
`deviceId`?
* `deviceId` is per audio/video etc. device, origin-unique, and 
persistent only after certain criteria. 
https://github.com/w3c/mediacapture-main/issues/218
* `id` for 
[MIDIPort](http://webaudio.github.io/web-midi-api/#idl-def-MIDIPort) -
 after a quick read this also seems **not origin-unique**. Has it been
 privacy vetted?
* `instanceId` for 
[bluetooth](https://webbluetoothcg.github.io/web-bluetooth/#bluetoothdevice)
 seems origin-unique and scoped to the grant-window of the device, 
which I assume means it's persistent.

These all seem tailored to their domain, and not easily 
interchangeable to me.

-- 
GitHub Notif of comment by jan-ivar
See 
https://github.com/w3c/mediacapture-main/issues/202#issuecomment-122132419

Received on Thursday, 16 July 2015 23:48:35 UTC