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

How to share screen on Chrome 72+

Hao__Feng
Beginner
268 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
268 Views

Do you try our sample code ?  

 

 

Reply