Help Center/
Meeting/
Client SDK Reference/
Android SDK/
Typical Scenarios/
Scenario 7: Joining a Meeting
Updated on 2024-07-30 GMT+08:00
Scenario 7: Joining a Meeting
Description
You can join a meeting using the meeting ID and password regardless of whether you have logged in.
Service Process
- Call the API.
- Create a JoinConfParam object.
- PasswordJoinConfParam is used to join a meeting based on the meeting ID.
- RandomJoinConfParam is used to join a meeting in random mode.
1 2 3 4 5 6 7
// Create a JoinConfParam object. PasswordJoinConfParam passwordJoinConfParam = new PasswordJoinConfParam() .setConfId(getConfId()) // Set the meeting ID. .setConfId(getConfId()) // Set the name in the meeting. .setCameraOn(true) // Specify whether to enable the camera. .setMicOn(true); // Specify whether to enable the microphone. .setPassword(true) // Set the password for joining the meeting.
- Call the joinConf API to join the meeting. The data in the preceding step is used as input parameters.
- Create a JoinConfParam object.
- Implement the callback.
Process the result in the callback.
Sample Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
// Join a meeting. HWMSdk.getOpenApi(getActivity()).joinConf(passwordJoinConfParam, new HwmCancelableCallBack<Void>() { @Override public void onSuccess(Void ret) { Log.i(TAG, "Meeting joined"); } @Override public void onFailed(int retCode, String desc) { String err = ErrorMessageFactory.create(Utils.getApp(), retCode); if (TextUtils.isEmpty(err)) { err = Utils.getApp().getString(com.huawei.hwmmobileconfui.R.string.conf_join_fail_tip); } Log.i(TAG, "Join meeting failed: "+ err); } @Override public void onCancel() { Log.i(TAG, "Canceled the request to join the meeting"); } }); |
Precautions
If you call this API without logging in to Huawei Cloud Meeting, the nickname parameter must be specified.
Parent topic: Typical Scenarios
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot