Intel® Collaboration Suite for WebRTC
Community support and discussions on the Intel® Collaboration Suite for WebRTC (Intel® CS for WebRTC).
Announcements
Welcome to the Intel Community. If you get an answer you like, please mark it as an Accepted Solution to help others. Thank you!
For the latest information on Intel’s response to the Log4j/Log4Shell vulnerability, please see Intel-SA-00646

Screen share not working in 4.1

ANIL_K_3
Beginner
205 Views

HI,

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

0 Kudos
2 Replies
Chunbo_H_Intel1
Employee
205 Views

Which component are you using with screen sharing?

Thanks!

ANIL_K_3
Beginner
205 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');
      }
    })

  });

Reply