Intel® Collaboration Suite for WebRTC
Community support and discussions on the Intel® Collaboration Suite for WebRTC (Intel® CS for WebRTC).

Screen share not working in 4.1

ANIL_K_3
Beginner
652 Views

HI,

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

0 Kudos
2 Replies
Chunbo_H_Intel1
Employee
652 Views

Which component are you using with screen sharing?

Thanks!

0 Kudos
ANIL_K_3
Beginner
652 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
Reply