Answers for "config.video Constraints"

0

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);
Posted by: Guest on May-22-2021

Browse Popular Code Answers by Language