Help Center> Meeting> Client SDK Reference> macOS SDK> APIs> Basic Settings> Enabling or Disabling the Camera and Microphone in a Meeting
Updated on 2023-03-23 GMT+08:00

Enabling or Disabling the Camera and Microphone in a Meeting

isOpenMicrophoneIncoming

API Description

This API is used to customize the microphone status when a user is invited to a meeting.

Precautions

  1. If automatic mute has been set for participants excluding the host, the microphone status customization does not take effect.

Method Definition

1
- (BOOL)isOpenMicrophoneIncoming;

Parameter Description

None

Sample Code

1
2
3
4
/// Whether to enable the microphone when a user is invited to a meeting.
- (BOOL)isOpenMicrophoneIncoming {
    return NO;
}

isOpenCameraIncoming

API Description

This API is used to customize the camera status when a user is invited to a meeting.

Precautions

None

Method Definition

1
- (BOOL)isOpenCameraIncoming;

Parameter Description

None

Sample Code

1
2
3
4
/// Whether to enable the camera when a user is invited to a meeting.
- (BOOL)isOpenCameraIncoming {
    return NO;
}