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.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) |
TUIRoomKit
provides a wealth of in-conference control functions, allowing you to easily handle various conference situations. Through this section, you will intuitively understand how to effectively control the conference during the conference.Stage Management
button on the conference bottom toolbar to open the stage management interface, as shown in the first picture on the right below.Function | Corresponding interface (Android as an example) |
Disable/Enable video for all | |
Turn off/Request to turn on user's audio/video | |
Transfer host | |
Set/Cancel administrator | |
Disable/enable message for user | |
Kick out of the room | |
Invite to stage/Ask to step down | |
Agree/Reject user's stage application |
Was this page helpful?