4 ms·
This only allows you to specify a preferred resolution, but doesn't return the resolution actually available. Any device info is returned in the MediaDeviceInfo
by masswerk 5y ago
This only allows you to specify a preferred resolution, but doesn't return the resolution actually available. Any device info is returned in the MediaDeviceInfo object [1] on enumeration (which doesn't include resolution or similar data).
[1] https://developer.mozilla.org/en-US/docs/Web/API/MediaDeviceInfo https://developer.mozilla.org/en-US/docs/Web/API/MediaDevice...