0

I use the navigator.mediaDevices.getUserMedia to stream video on the page (640x480). Is it possible to do it without CSS?

    var video = document.getElementById('video');
    if(navigator.mediaDevices && navigator.mediaDevices.getUserMedia) {
        navigator.mediaDevices.getUserMedia(mediaConfig).then(function(stream) {
            video.srcObject = stream;
            video.play();
        });
    }

I need to show only a centered square 300x300. All outside images should not be displayed or it should have increased brightness.

The main problem is to send entire image which is captured from the stream.

bexoc
  • 1
  • 2

0 Answers0