config.video Constraints code example
Example: config.video Constraints
document.getElementById("startButton").addEventListener("click", function() {
navigator.mediaDevices.getUserMedia({
video: {
width: 1920,
height: 1024,
frameRate: 15
}
}).then(stream => videoElement.srcObject = stream)
.catch(err => log(err.name + ": " + err.message));
}, false);