removeRemoteDisplay method

Future<void> removeRemoteDisplay(
  1. int userId
)

移除并释放user所对应的{@link RTCVideoView},可通过{@link #setRemoteDisplay(RTCVideoView, long)} 接口再次设置RenderView. 若用户不主动调用该接口释放RenderView,则相应的渲染视图将在远端用户退出或本端登出房间时释放.

@param userId 远端用户Id

Implementation

Future<void> removeRemoteDisplay(int userId) {
  return bRTCPluginChannel.invokeMethod('removeRemoteDisplay', {
    "userId": userId,
  });
}