Enabling or Disabling the Camera and Microphone in a Meeting
You can configure whether to automatically enable the camera or microphone when joining a meeting in OpenSDKConfig.
When you join a meeting, the SDK uses this callback API to obtain whether the camera and microphone are enabled and configure whether to enable the camera and microphone.
Application Scenarios
Users can enable or disable the camera and microphone in the application settings. You can customize this callback API to ensure that the status of the camera and microphone is the same as that configured by users in the application settings when the users join a meeting.
Precautions
1. The application must have the permission to enable the camera. Otherwise, the camera cannot be enabled.
2. sdkConfig takes effect only when this configuration is passed during SDK initialization.
Sample Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
public class MyDeviceStrategyWhenConfAccept implements IDeviceStrategyWhenConfAccept { @Override public boolean isTurnOnCameraWhenConfAccept() { // Specify whether to turn on or off the camera. return false; } @Override public boolean isTurnOnMicWhenConfAccept() { // Specify whether to turn on or off the microphone. return false; } } sdkConfig.setDeviceStrategyWhenConfAccept(new MyDeviceStrategyWhenConfAccept()); |
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.
For any further questions, feel free to contact us through the chatbot.
Chatbot