In prior to make Safari as supported browser, it was needed to fix this because latest Safari TP returns empty deviceId before calling getUserMedia() causes error on calling real getUserMedia().
This time, flow will be..
getUserMedia() for user permission
enumerateDevices()
get deviceId from first item in devices array
getUserMedia() to get stream
then show up device selection view
This changes does not affect current supported browsers.
Formerly, our control flow was like this.
enumerateDevices()
deviceId
from first item in devices arraygetUserMedia()
to get streamgetUserMedia()
again to update deviceslabel
In prior to make Safari as supported browser, it was needed to fix this because latest Safari TP returns empty
deviceId
before callinggetUserMedia()
causes error on calling realgetUserMedia()
.This time, flow will be..
getUserMedia()
for user permissionenumerateDevices()
deviceId
from first item in devices arraygetUserMedia()
to get streamThis changes does not affect current supported browsers.