Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner
1 View

How to share screen on Chrome 72+

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!!

Tags (2)
0 Kudos
1 Reply
Highlighted
Employee
1 View

Do you try our sample code ? 

Do you try our sample code ?  

 

 

0 Kudos