[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:40:34 PST 2017


--- Comment #10 from youenn fablet <youennf at gmail.com> ---
(In reply to Chad Phillips from comment #9)
> @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.

Good to hear the label workaround is working fine.

What I am proposing should allow the browser to do what your application is doing right now.
When in Safari, you would disable the automatic device selection and would only implement explicit user device selection.
If it does not work as is, I agree we should not bother implementing it.

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/5a7b6d04/attachment.html>

More information about the webkit-unassigned mailing list