After consulting the w3g github project 
(https://github.com/w3c/mediacapture-main/issues/299#issuecomment-168856020), I 
see two potential solutions:

1. Set the label field on the media stream track to the MediaDeviceInfo's label
2. Implement MediaStreamTrack.getSettings(), which would include a deviceId 
that maps directly to a MediaDeviceInfo deviceId

Second is probably a better solution.  First is probably faster.
_______________________________________________
dev-media mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-media

Reply via email to