AgoraIO-Community / Agora-RN-Quickstart

113 stars 52 forks source link

How to show Image When Video is Mute #76

Open muhamadjawad opened 2 years ago

muhamadjawad commented 2 years ago

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 addwatermarkalso but that also threw error. Can any one please help me.

LichKing-2234 commented 2 years ago

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

muhamadjawad commented 2 years ago

Can u please provide an example.?

LichKing-2234 commented 2 years ago

https://stackoverflow.com/questions/29541971/absolute-and-flexbox-in-react-native

muhamadjawad commented 2 years ago

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 commented 2 years ago

Using

muhamadjawad commented 2 years ago

but this is for remote users what about local view?

LichKing-2234 commented 2 years ago
for the local video for the remote video
LichKing-2234 commented 2 years ago

maybe you can refer to our example

https://github.com/AgoraIO-Community/react-native-agora/blob/master/example/src/examples/basic/JoinChannelVideo/JoinChannelVideo.tsx

muhamadjawad commented 2 years ago

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

LichKing-2234 commented 2 years ago

you should not use the view for the audio call.

muhamadjawad commented 2 years ago

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

LichKing-2234 commented 2 years ago

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

muhamadjawad commented 2 years ago

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