TUIRoomKit
to help you better master the conference control features of TUIRoomKit
. Through this document, you will be able to fully utilize the functions of TUIRoomKit
to achieve high-quality audio and video conferences.Android&iOS&Flutter
platforms, the room host or an administrator can access the participant management options by clicking the member button on the bottom toolbar. This action will prompt a member list to appear at the bottom of the screen. Within this list, the host or administrator can select any regular member to enforce actions such as muting a user's messages or setting them as an administrator, among other conference control operations. In addition, the host or administrator has the ability to perform conference-wide control actions, such as muting audio for all participants in the room.TUIRoomKit
to set the relevant parameters of the conference in advance, ensuring the smooth progress of the conference.// CreateRoomViewController for your own ViewControllerclass CreateConferenceViewController: UIViewController {private var conferenceViewController: ConferenceMainViewController?func quickStartConferenceAction() {conferenceViewController = ConferenceMainViewController()// Implement the pre-conference control features by setting the parameters in ConferenceParams.let params = ConferenceParams()params.isMuteMicrophone = falseparams.isOpenCamera = falseparams.isSoundOnSpeaker = trueparams.name = "your conference name"params.enableMicrophoneForAllUser = trueparams.enableCameraForAllUser = trueparams.enableMessageForAllUser = trueparams.enableSeatControl = falseconferenceViewController?.setConferenceParams(params: params)conferenceViewController?.setConferenceObserver(observer: self)// After completing the settings, call the interface to start or join a conference. Here, we take starting a conference as an example.conferenceViewController?.quickStartConference(conferenceId: "your conferenceId")}}extension CreateConferenceViewController: ConferenceObserver {func onConferenceStarted(conferenceId: String, error: ConferenceError) {if error == .success, let vc = conferenceViewController {navigationController?.pushViewController(vc, animated: true)}conferenceViewController = nil}}
public class ConferenceOwnerActivity extends AppCompatActivity {private static final String TAG = "ConferenceOwnerActivity";private ConferenceObserver mConferenceObserver;@Overrideprotected void onCreate(Bundle savedInstanceState) {super.onCreate(savedInstanceState);setContentView(R.layout.app_activity_conference_main); // Implement the pre-conference control features by setting the parameters in ConferenceParams.ConferenceParams params = new ConferenceParams();params.setMuteMicrophone(false);params.setOpenCamera(false);params.setSoundOnSpeaker(true); params.setName("your conference name");params.setEnableMicrophoneForAllUser(true);params.setEnableCameraForAllUser(true);params.setEnableMessageForAllUser(true);params.setEnableSeatControl(false);ConferenceMainFragment fragment = new ConferenceMainFragment();fragment.setConferenceParams(params);setConferenceObserver(fragment);fragment.quickStartConference("your conferenceId"); // After completing the settings, call the interface to start or join a conference. Here, we take starting a conference as an example.}private void setConferenceObserver(ConferenceMainFragment fragment) {mConferenceObserver = new ConferenceObserver() {@Overridepublic void onConferenceStarted(String conferenceId, ConferenceError error) {super.onConferenceStarted(conferenceId, error);if (error != ConferenceError.SUCCESS) { Log.e(TAG, "Error : " + error); return; } FragmentManager manager = getSupportFragmentManager(); FragmentTransaction transaction = manager.beginTransaction(); transaction.add(R.id.conference_owner_container, fragment); transaction.commitAllowingStateLoss();}};fragment.setConferenceObserver(mConferenceObserver);}}
var conferenceSession = ConferenceSession.newInstance("your conferenceId")..isMuteMicrophone = false..isOpenCamera = false..isSoundOnSpeaker = true..name = "your conference name"..enableMicrophoneForAllUser = true..enableCameraForAllUser = true..enableMessageForAllUser = true..enableSeatControl = false..onActionSuccess = () { // Successful operation callback, you can navigate to the conference page here.Navigator.push(context,MaterialPageRoute(builder: (context) => ConferenceMainPage(),),);}..onActionError = (ConferenceError error, String message) {} // Failure operation callback..quickStart(); // After completing the settings, call the interface to start or join a conference. Here, we take starting a conference as an example.
Parameter | Type | Meaning |
isMuteMicrophone | bool | Whether to mute the microphone (default is false) |
isOpenCamera | bool | Whether to open the camera (default is false) |
isSoundOnSpeaker | bool | Whether to turn on the speakers (default is true) |
name | String | conference name (default is your conferenceId) |
enableMicrophoneForAllUser | bool | Whether to enable microphone permission for all members (default is true) |
enableCameraForAllUser | bool | Whether to enable camera permission for all members (default is true) |
enableMessageForAllUser | bool | Whether to enable message permission for all members (default is true) |
enableSeatControl | bool | Whether to enable on-stage speaking mode (default is false) |
Was this page helpful?