ConferenceDefine.StartConferenceParams params = new ConferenceDefine.StartConferenceParams("222222"); // Please replace "222222" with your own defined room number params.passWord = "123456"; // Please replace "123456" with your set password (pure digits, up to 6 characters) Intent intent = new Intent(this, ConferenceMainActivity.class); intent.putExtra(KEY_START_CONFERENCE_PARAMS, params); startActivity(intent);
import TUIRoomKitfunc quickStartConference() {let vc = ConferenceMainViewController()let params = StartConferenceParams(roomId: "111111") // Please replace "111111" with your defined room numberparams.password = "123456" // Please replace "123456" with your defined room passwordvc.setStartConferenceParams(params: params)navigationController?.pushViewController(vc, animated: true)}
#import "TUIRoomKit/TUIRoomKit-Swift.h"- (void)quickStartConference {ConferenceMainViewController * vc = [[ConferenceMainViewController alloc]init];StartConferenceParams * params = [[StartConferenceParams alloc]initWithRoomId: @"111111" // Please replace "111111" with your custom room numberisOpenMicrophone:YESisOpenCamera:NOisOpenSpeaker:YESisMicrophoneDisableForAllUser:NOisCameraDisableForAllUser:NOisSeatEnabled:NOname:@"YourRoomName"password:@"123456"]; // Please replace "123456" with your custom room password[vc setStartConferenceParamsWithParams:params];[self.navigationController pushViewController:vc animated:YES];}
// Note the package name. If you are using the vue2 version, please change the package name to @tencentcloud/roomkit-web-vue2.7import { conference } from '@tencentcloud/roomkit-web-vue3';conference.start('123456', { // Please replace "123456" with your own defined room numberroomName: 'TestRoom',isSeatEnabled: false,isOpenCamera: false,isOpenMicrophone: false,password: '123456', // Please replace "123456" with your set password (pure digits, up to 6 characters)});
Android & iOS | | |
Schedule password room | Non-invited members enter the room with password | Invited members can directly enter the room |
| | |
Web | | |
Creating password room | Non-invited members enter the room with password | Invited members can directly enter the room |
| | |
// Location: Android/TUIRoomKit/tuiroomkit/src/main/java/com/tencent/cloud/tuikit/roomkit/view/page/widget/ScheduleConference/viewview├── EnterConferencePasswordView.java // Password Input Popup Interface└── SetConferenceEncryptView.java // Schedule Conference Password Setting Interface
view├── ConferencePasswordView.swift // Password Input Popup Interface└── ScheduleConferenceDataHelper.swift // Schedule Conference Password Popup Style Interface
// Location: TUIRoomKit/Web/roomkit/vue3/src/TUIRoom/components/PreRoom├── PasswordDialog.vue // Password Input Popup InterfaceScheduleConference/ScheduleConferencePanel├── ScheduleConferencePanelPC.vue // Schedule Conference Password Setting Interface Web└── ScheduleConferencePanelH5.vue // Schedule Conference Password Setting Interface H5
// Location: TUIRoomKit/Electron/roomkit/vue3/src/TUIRoom/components/PreRoom├── PasswordDialog.vue // Password input popup interfaceScheduleConference/ScheduleConferencePanel├── ScheduleConferencePanelPC.vue // Schedule Conference Password Setting Interface Web└── ScheduleConferencePanelH5.vue // Schedule Conference Password Setting Interface H5
public abstract void createRoom(TUIRoomDefine.RoomInfo roomInfo, TUIRoomDefine.ActionCallback callback);
TUIRoomDefine.RoomInfo roomInfo = new TUIRoomDefine.RoomInfo();roomInfo.roomId = "222222"; // Please replace "222222" with your own defined room numberroomInfo.password = "123456" // Please replace "123456" with your set password (pure digits, up to 6 characters)TUIRoomEngine.sharedInstance().createRoom(roomInfo, new TUIRoomDefine.ActionCallback() {@Overridepublic void onSuccess() {// Callback for successful room creation}@Overridepublic void onError(TUICommonDefine.Error error, String message) {// Callback for failed room creation}});
- (void)createRoom:(TUIRoomInfo *)roomInfo onSuccess:(TUISuccessBlock)onSuccess onError:(TUIErrorBlock)onError NS_SWIFT_NAME(createRoom(_:onSuccess:onError:));
import RTCRoomEnginefunc createRoom() {let roomInfo = TUIRoomInfo()roomInfo.roomId = "111111" // Please replace "111111" with your custom room numberroomInfo.password = "123456" // Please replace "123456" with your custom room passwordTUIRoomEngine.sharedInstance().createRoom(roomInfo) {print("CreateRoom success")} onError: { code, message inprint("CreateRoom error, code:\\(code), message:\\(message)")}}
#import "RTCRoomEngine/TUIRoomDefine.h"#import "RTCRoomEngine/TUIRoomEngine.h"- (void)createRoom {TUIRoomInfo * roomInfo = [[TUIRoomInfo alloc] init];roomInfo.roomId = @"111111"; // Please replace "111111" with your custom room numberroomInfo.password = @"123456"; // Please replace "123456" with your custom room password[[TUIRoomEngine sharedInstance] createRoom:roomInfo onSuccess:^{NSLog(@"CreateRoom success");} onError:^(TUIError code, NSString * _Nonnull message) {NSLog(@"CreateRoom error, code:%ld, message:%@", (long)code, message);}];}
// Note the package name. If you are using the vue2 version, please change the package name to @tencentcloud/roomkit-web-vue2.7import { conference } from '@tencentcloud/roomkit-web-vue3';conference.start('123456', { // Please replace "123456" with your own defined room numberroomName: 'TestRoom',isSeatEnabled: false,isOpenCamera: false,isOpenMicrophone: false,password: '123456', // Please replace "123456" with your set password (pure digits, up to 6 characters)});
public abstract void scheduleConference(ConferenceInfo conferenceInfo, TUIRoomDefine.ActionCallback callback);
TUIConferenceListManager manager = TUIRoomEngine.sharedInstance().getExtension(CONFERENCE_LIST_MANAGER);TUIConferenceListManager.ConferenceInfo conferenceInfo = new TUIConferenceListManager.ConferenceInfo();conferenceInfo.basicRoomInfo.roomId = "222222"; // Please replace "222222" with your own defined room numberconferenceInfo.basicRoomInfo.password = "123456"; // Please replace "123456" with your set password (pure digits, up to 6 characters)manager.scheduleConference(conferenceInfo, new TUIRoomDefine.ActionCallback() {@Overridepublic void onSuccess() {// Successful callback for booking a room}@Overridepublic void onError(TUICommonDefine.Error error, String message) {// Failed callback for booking a room}});
- (void)scheduleConference:(TUIConferenceInfo *)conferenceInfo onSuccess:(TUISuccessBlock)onSuccess onError:(TUIErrorBlock)onError NS_SWIFT_NAME(scheduleConference(_:onSuccess:onError:));
import RTCRoomEnginefunc scheduleConference() {let manager = TUIRoomEngine.sharedInstance().getExtension(extensionType: .conferenceListManager) as? TUIConferenceListManagerlet conferenceInfo = TUIConferenceInfo()conferenceInfo.basicRoomInfo.roomId = "111111" // Please replace "111111" with your custom room numberconferenceInfo.basicRoomInfo.password = "123456" // Please replace "123456" with your custom room passwordmanager?.scheduleConference(conferenceInfo, onSuccess: {print("ScheduleConference success")}, onError: { code, message inprint("ScheduleConference failed, code:\\(code), message:\\(message)")})}
#import "RTCRoomEngine/TUIRoomEngine.h"#import "RTCRoomEngine/TUIConferenceListManager.h"- (void)scheduleConference {TUIConferenceListManager * manager = [[TUIRoomEngine sharedInstance] getExtension: TUIExtensionTypeConferenceListManager];TUIConferenceInfo * conferenceInfo = [[TUIConferenceInfo alloc] init];conferenceInfo.basicRoomInfo.roomId = @"111111"; // Please replace "111111" with your custom room numberconferenceInfo.basicRoomInfo.password = @"123456"; // Please replace "123456" with your custom room password[manager scheduleConference:conferenceInfo onSuccess:^{NSLog(@"ScheduleConference success");} onError:^(TUIError code, NSString * _Nonnull message) {NSLog(@"ScheduleConference failed, code:%ld, message:%@", (long)code, message);}];}
public abstract void enterRoom(String roomId, TUIRoomDefine.RoomType roomType, TUIRoomDefine.EnterRoomOptions options, TUIRoomDefine.GetRoomInfoCallback callback);
String roomId = "222222"; // Please replace "222222" with the room number you are joiningTUIRoomDefine.EnterRoomOptions options = new TUIRoomDefine.EnterRoomOptions();options.password = "123456"; // Please replace "123456" with your set password (pure digits, up to 6 characters)TUIRoomEngine.sharedInstance().enterRoom(roomId, TUIRoomDefine.RoomType.CONFERENCE, options, new TUIRoomDefine.GetRoomInfoCallback() {@Overridepublic void onSuccess(TUIRoomDefine.RoomInfo engineRoomInfo) {// Successful room entry callback}@Overridepublic void onError(TUICommonDefine.Error error, String message) {// Failed room entry callbackif (error == TUICommonDefine.Error.WRONG_PASSWORD) {// Wrong password, handle the incorrect entry password business here.}}});
- (void)enterRoom:(NSString *)roomId roomType:(TUIRoomType)roomType options:(TUIEnterRoomOptions *)options onSuccess:(TUIRoomInfoBlock)onSuccess onError:(TUIErrorBlock)onError NS_SWIFT_NAME(enterRoom(_:roomType:options:onSuccess:onError:));
import RTCRoomEnginefunc enterRoom() {let roomId = "111111" // Please replace "111111" with your custom room numberlet options = TUIEnterRoomOptions()options.password = "123456" // Please replace "123456" with your custom room passwordTUIRoomEngine.sharedInstance().enterRoom(roomId, roomType: .conference, options: options) { roomInfo inprint("EnterRoom success")} onError: { code, message inprint("EnterRoom failed, code:\\(code), message:\\(message)")}}
#import "RTCRoomEngine/TUIRoomEngine.h"- (void)enterRoom {NSString * roomId = @"111111"; // Please replace "111111" with your custom room numberTUIEnterRoomOptions * options = [[TUIEnterRoomOptions alloc] init];options.password = @"123456"; // Please replace "123456" with your custom room password[[TUIRoomEngine sharedInstance] enterRoom:roomId roomType:TUIRoomTypeConference options:options onSuccess:^(TUIRoomInfo * _Nullable roomInfo) {NSLog(@"EnterRoom success");} onError:^(TUIError code, NSString * _Nonnull message) {NSLog(@"EnterRoom failed, code:%ld, message:%@", (long)code, message);}];}
// Note the package name. If you are using the vue2 version, please change the package name to @tencentcloud/roomkit-web-vue2.7import { conference } from '@tencentcloud/roomkit-web-vue3';conference.join('123456', { // Please replace "123456" with the room number you are joiningisOpenCamera: false,isOpenMicrophone: false,password: 'Set your room password', // Please replace "123456" with your set password (pure digits, up to 6 characters)});
Was this page helpful?