react-native-twilio-video-webrtc icon indicating copy to clipboard operation
react-native-twilio-video-webrtc copied to clipboard

Screen sharing not working

Open poojalivin opened this issue 1 year ago • 1 comments

Steps to reproduce

  1. I have used this reference for installation https://github.com/blackuy/react-native-twilio-video-webrtc .It was successful and I was able to implement the features too. But I couldn't find any method "setScreenShareEnabled" in my TwilioVideo.android.js file which is in node_modules/react-native-twilio-video-webrtc/src.
  2. I tried to implement that method manually. Like added
  •   "onScreenShareChanged: PropTypes.func" in "propTypes" 
    
  •    "toggleScreenShare: 16" in nativeEvents
    
  •    added method,
    

setScreenShareEnabled (enabled) { this.runCommand(nativeEvents.toggleScreenShare, [enabled]) }

  • "onScreenShareChanged" in buildNativeEventWrappers()

But the event onScreenShareChanged was not triggered on setting setScreenShareEnabled(true).

Environment

  • Node.js version:
  • React Native version: ^0.64.4
  • **buildToolsVersion = "29.0.2" minSdkVersion = 21 compileSdkVersion = 29 targetSdkVersion = 29

react-native-twilio-video-webrtc

Version: "react-native-twilio-video-webrtc": "github:blackuy/react-native-twilio-video-webrtc" npm: '8.11.0',

poojalivin avatar Jan 07 '24 13:01 poojalivin

Thanks for sharing. We'll add it to the pipeline and have updates soon.

gastonmorixe avatar Oct 02 '24 15:10 gastonmorixe