I have been trying to set screen share video quality using height constraint but on the latest version of MAC Safari, it's not working.
MAC OS Version: 13.1 Safari Version: 16.2
Here is code
let constraints = {
aspectRatio: 1.777,
frameRate: 15,
height: 480
}
navigator.mediaDevices
.getDisplayMedia({video :constraints})
.then((stream) => {
// success
})
.catch(e => {
// error
});
I have tried this constraint but not working
var constraints = {
mandatory: {
maxHeight: 480,
aspectRatio: 1.777,
frameRate: 15,
},
optional: []
}