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

How to share screen on Chrome 72+

Hao__Feng
Beginner
179 Views
navigator.mediaDevices.getDisplayMedia()
.then(stream => {
        const publishStream = new Owt.Base.LocalStream(
          stream, new Owt.Base.StreamSourceInfo(Owt.Base.AudioSourceInfo.MIC, Owt.Base.VideoSourceInfo.SCREENCAST));
        
        this.conference.publish(publishStream).then();
      }, err => {
        Log.danger('Failed to create MediaStream');
        console.error(err);
      });

When I share screen by 'getDisplayMedia' method, the conference client show some error.

 

I don't know how to set a valid audio/video config.

Help me, please !!

Better to post some demo code, please!!

0 Kudos
1 Reply
YanbinZ_Intel
Employee
179 Views

Do you try our sample code ?  

 

 

Reply