on Remote User Joined
public abstract void onRemoteUserJoined(String userId, RongCallCommon.CallMediaType mediaType, int userType, SurfaceView remoteVideo)
被叫端加入通话。 主叫端拨出电话,被叫端收到请求后,加入通话,回调 onRemoteUserJoined。
Parameters
user Id
加入用户的 id。
media Type
加入用户的媒体类型,audio or video。
user Type
加入用户的类型,1:正常用户,2:观察者。
remote Video
加入用户者的 camera 信息。如果 userType为2,remoteVideo对象为空;如果对端调用startCall 或 acceptCall开始的音视频通话,则可以使用如下设置改变对端视频流的镜像显示:
public void onRemoteUserJoined(String userId, RongCallCommon.CallMediaType mediaType, int userType, SurfaceView remoteVideo) { if (null != remoteVideo) { ((RCRTCVideoView) remoteVideo).setMirror( boolean);//观看对方视频流是否镜像处理 } }
Content copied to clipboard