Agora-RN-Quickstart
Agora-RN-Quickstart copied to clipboard
How to show Image When Video is Mute
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.
You can add an image view to float to the render view.
Can u please provide an example.?
https://stackoverflow.com/questions/29541971/absolute-and-flexbox-in-react-native
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.??
Using <RtcRemoteView.SurfaceView/>
but this is for remote users what about local view?
<RtcLocalView.SurfaceView> for the local video <RtcRemoteView.SurfaceView> for the remote video
maybe you can refer to our example
https://github.com/AgoraIO-Community/react-native-agora/blob/master/example/src/examples/basic/JoinChannelVideo/JoinChannelVideo.tsx
But that code is for video call what about audio call??
you should not use the view for the audio call.
then how can i show my image to remote users in audio call???
Use your server to get the image URL the show it by the Image view.
Isnt there any option .I am trying to avoid server use here.As it will lag the call.