[Webkit-unassigned] [Bug 179220] mediaDevices.enumerateDevices(), device ids change on page refresh

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Dec 20 15:33:32 PST 2017


--- Comment #9 from Chad Phillips <webkit at xylil.com> ---
@youenn, that sounds awfully complicated.

How would I, in Javascript, know that Safari has 'remembered' a device, and that device matches the one selected by a user?

This also creates a split between Safari handling the picking of the device, and my own code having to maybe, sometimes, handle it. I think it would be cleaner if the developer always did it, and in this case, the most accurate way to always pick the right device is a reliable machine ID.

I've already built code that looks up the previous device based on the device label, and it's an OK workaround for now, but definitely not as accurate or reliable as a machine ID.

If we can't have consistent IDs, I'd favor what I'm doing now over what you're suggesting.

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20171220/6d881eb4/attachment-0001.html>

More information about the webkit-unassigned mailing list