getUserMedia constraints ignored on Safari 12
问题 For some reason Safari 12 (haven't tried on other versions) is completely ignoring getUserMedia constraints. My code looks something like this navigator.mediaDevices.getUserMedia({ video: { facingMode: 'environment', width: { min: 640, ideal: 1280 } }, audio: true }) .then(userStream)//Safari on Mac ignores constraints and ends up executing here .catch(fallback)//Chrome on Mac raises and error and ends up executing here On Chrome when I do stream.getVideoTracks()[0].getConstraints() I get