If only one video device is available it uses the first item of the device array. If this is not the video device you get an Constraint Error for the given deviceId.
This fix returns the first entry of the already filtered and checked video device array to ensure that the only available video deviceId is used.
If only one video device is available it uses the first item of the device array. If this is not the video device you get an Constraint Error for the given deviceId.
This fix returns the first entry of the already filtered and checked video device array to ensure that the only available video deviceId is used.