I want to display the screen in the video tag. I use API :

 if ('getDisplayMedia' in window.navigator) { // используем getDisplayMedia navigator.mediaDevices.getDisplayMedia({video: true}) .then(function(stream) { /* use the stream */ document.querySelector('video').srcObject = stream; }) .catch( err => { console.log(err) }); } else { // возвращаемся к варианту с расширением console.error('Не доступно getDisplayMedia'); } 

Version Chrome 70.0.3538.77 (Official build), (64 bit)

OS Ubuntu 18.04

Displays:

Not available getDisplayMedia

I understand that this method is not. But why, because it should be?

    0