-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
React Native SDK - Screen sharing not showing, disable video and mic when joining, toggle device speakers #1579
Comments
Hi, About 1, this is not reproducible in the sample app. Have you customised the CallContent view or not using it. This might be the cause here. Can you please share it About 2, You can disable it through Dashboard. Navigate to About 3, Sorry I dont understand what you mean here. But check out https://github.com/react-native-webrtc/react-native-incall-manager. Speaker management in React Native is done through this library. |
@santhoshvai Hi 👋, I don't use the const {
useParticipants,
} = useCallStateHooks();
const participants = useParticipants();
{ // Room is joined and live
callingState === CallingState.JOINED &&
<>
<CurrentLiveRoomHeader/>
<View style={[AppStyles.container]}>
<CallParticipantsList
participants={participants}
/>
</View>
<CurrentLiveRoomFooter/>
</>
} Please check this video to see it: |
@santhoshvai , Hi, any updates on this based on my |
@emmanuel-D I recommend to please trying out using |
@santhoshvai good recommendation indeed. But the main issue and confusing part was that according to the docs the Expo setup is not similar to the React Native one. For me the below native code was missing in my import com.oney.WebRTCModule.WebRTCModuleOptions;
@Override
protected void onCreate(Bundle savedInstanceState) {
WebRTCModuleOptions options = WebRTCModuleOptions.getInstance();
options.enableMediaProjectionService = true;
// ..the rest
} |
Which package/packages do you use?
@stream-io/video-react-sdk
@stream-io/video-react-native-sdk
@stream-io/video-client
Describe the bug
I am currently integrating the React Native SDK in my app and so far everything is easy. I am using the Expo Dev Client.
The 1st issue is that the
ShareScreenButton
is not displaying the video stream when pressed, although on Android the native Prompt Popup warning before starting the screenshare is displayed. After accepting the sharing, no participant is seeing nothing being shared. No error is thrown in the console logs.2nd is how to auto-disable the video and mic (audio) when joining the call ?
3rd is how to toggle Speakers on real Device in order to use laud-speakers instead of low-speakers ?
Below are some of my code snippets:
To Reproduce
Steps to reproduce the behavior:
-----
ScreenShareToggleButton.tsx
----
CallView.tsx
----
app.json
(Expo DEV Client)plugins
entry----
Call.tsx
(Where User can join call) inside anuseEffect hook
Expected behavior
After starting the screen-share, the
<ParticipantView/>
component should display the shared stream.But currently nothing shows-up
Screenshots
VIDEO EXPLAINING THE BUG
https://github.com/user-attachments/assets/b2e1ddce-e4ed-475c-94d5-0d6be23f0ef4
SDK Version
Env:
React Native
Node JS client
22 LTS
Additional context

Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: