enterRoom method

  1. @override
Future<TUIValueCallBack<TUIRoomInfo>> enterRoom(
  1. String roomId,
  2. bool enableMic,
  3. bool enableCamera,
  4. bool isSoundOnSpeaker,
)
override

Implementation

@override
Future<TUIValueCallBack<TUIRoomInfo>> enterRoom(String roomId, bool enableMic,
    bool enableCamera, bool isSoundOnSpeaker) async {
  var result = await RoomEngineManager()
      .enterRoom(roomId, enableMic, enableCamera, isSoundOnSpeaker);
  if (result.code == TUIError.success) {
    Get.to(const ConferenceMainPage());
  }
  return result;
}