Skip to content
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

How to show Image When Video is Mute #76

Open
muhamadjawad opened this issue Nov 12, 2021 · 13 comments
Open

How to show Image When Video is Mute #76

muhamadjawad opened this issue Nov 12, 2021 · 13 comments

Comments

@muhamadjawad
Copy link

hi, I just came with a problem that when ever i mute the video in video call i want ti show my image to the remote users but i cant do that .I used addwatermark also but that also threw error.
Can any one please help me.

@LichKing-2234
Copy link
Contributor

You can add an image view to float to the render view.

@muhamadjawad
Copy link
Author

Can u please provide an example.?

@LichKing-2234
Copy link
Contributor

@muhamadjawad
Copy link
Author

I m using curently this code for showing local Video.

    <View style={[styles.localView]}>
       <RtcLocalView.SurfaceView
         zOrderOnTop={true}
         style={{flex: 1}}
         channelId={channelName}

         // renderMode={VideoRenderMode.Hidden}
       />
     </View>

Now how can i show my image to all users in group call.??

@LichKing-2234
Copy link
Contributor

Using <RtcRemoteView.SurfaceView/>

@muhamadjawad
Copy link
Author

but this is for remote users what about local view?

@LichKing-2234
Copy link
Contributor

<RtcLocalView.SurfaceView> for the local video
<RtcRemoteView.SurfaceView> for the remote video

@LichKing-2234
Copy link
Contributor

@muhamadjawad
Copy link
Author

But that code is for video call what about audio call??

@LichKing-2234
Copy link
Contributor

you should not use the view for the audio call.

@muhamadjawad
Copy link
Author

then how can i show my image to remote users in audio call???

@LichKing-2234
Copy link
Contributor

LichKing-2234 commented Nov 15, 2021

Use your server to get the image URL the show it by the Image view.

@muhamadjawad
Copy link
Author

Isnt there any option .I am trying to avoid server use here.As it will lag the call.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants