startRoomMediaRelay method

Future<void> startRoomMediaRelay(
  1. String destRoomName,
  2. int userId,
  3. String token
)

启动跨房间连麦

@param destRoomName 目标房间 @param userId 加入目标房间时使用的userId,必须在加入房间中是唯一的 @param token app server 派发的token字符串 @discussion 启动跨房间连麦

Implementation

Future<void> startRoomMediaRelay(String destRoomName, int userId,
    String token) {
  return bRTCPluginChannel.invokeMethod('startRoomMediaRelay', {
    "destRoomName": destRoomName,
    "userId": userId,
    "token": token,
  });
}