enterRTCRoom method

Future<void> enterRTCRoom(
  1. String from
)

Implementation

Future<void> enterRTCRoom(String from) async {
  if (TcicScreen.isDeskTop()) {
    await Future.wait([TRTC.getCameraList(), TRTC.getMicrophoneList(), TRTC.getSpeakerList()]);
    await Future.wait([TRTC.getCurrentCamera(), TRTC.getCurrentMicrophone(), TRTC.getCurrentSpeaker()]);
  }
  TCICLog.info('${_classInfoObs.getClassInfo().classId} ${_config.userId} ${userSig ?? ""} ${_schoolInfoObs.getSchoolInfo().sdkappid}', actionModule: ActionModule.tcicController.name, actionName: ActionName.enterRTCRoom.name);
  await TRTC.enterRoom(_classInfoObs.getClassInfo().classId, _config.userId, userSig ?? "", _schoolInfoObs.getSchoolInfo().sdkappid, TRTCRoleType.anchor, from);
}