opentok / opentok-react

React components for OpenTok.js
https://www.npmjs.com/package/opentok-react
MIT License
107 stars 105 forks source link

Screen sharing in react hook #164

Closed vishnu8429 closed 3 years ago

vishnu8429 commented 3 years ago

Hi guys,

Can anyone help me to resolve the following issues

  1. How to publish an audio while screen share? I tried to enable the audio but its not working in subscribers end.
  2. How to remove the chrome popup that's open while screen share starts? or how to handle it from react hook side? Its always comes on top of the window.
  3. How to get the publisher mediaStopped event inside window.OT.checkScreenSharingCapability method?
enricop89 commented 3 years ago
  1. the screen sharing is without audio by default. You can use two OTPublisher component, one with the audio/camera feed and the other one with the screen.
  2. It's not possible to remove it as it's the standard behaviour of Chrome and other browsers. It's privacy related.
  3. mediaStopped event is triggered by the OTPublisher component.