Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
43 Views

Screen share not working in 4.1

HI,

screen share not working in 4.1 . response stream id not working . please check 

Tags (2)
0 Kudos
2 Replies
Highlighted
43 Views

Which component are you using with screen sharing?

Thanks!

0 Kudos
Highlighted
Beginner
43 Views

Google chrome Version 69.0.3497.100 (Official Build) (64-bit). Published extension in chrome extension and stored .

const EXTENSION_ID = 'xxxxxxxxxxxxxxxxx';
const getScreen = document.getElementById('getscreen');
getScreen.addEventListener('click', event => {
chrome.runtime.sendMessage(EXTENSION_ID, {getStream: screen}, response => {
      if (response && response.type === 'success') {
         navigator.mediaDevices.getUserMedia({
          video: {
            mandatory: {
              chromeMediaSource: 'desktop',
              chromeMediaSourceId: response.streamId,
            }
          }
        });
        console.log("Hello world!");
        console.log(response.streamId);
      } else {
        console.error('Could anot get stream');
      }
    })

  });

0 Kudos