
# 打开/关闭摄像头
**接口描述**
该接口用于控制服务端摄像头打开关闭。
**注意事项**
连接设备后使用。
**接口定义**
```
/* 打开\关闭摄像机 */   
int SetRemoteCameraMute(bool isCameraMute);
```
**参数描述** [4.6.4.2.1](https://support.huaweicloud.com/ideahub-IdeaShare-SDK/win-sdk-0053.html)
| 参数           | 是否必须 | 类型   | 描述                                                                  |
|:---|:---|:---|:---|
| isCameraMute | 是    | bool | true 摄像头关闭 false 摄像头打开 |
   
**返回值**
0 接口调用成功 非0 接口调用失败
**异步回调事件结果**
参见[4.6.4.1.10](https://support.huaweicloud.com/ideahub-IdeaShare-SDK/win-sdk-0047.html)OnSetRemoteCameraMuteResult和 [4.6.4.2.1](https://support.huaweicloud.com/ideahub-IdeaShare-SDK/win-sdk-0053.html)OnRemoteServiceStatusChangedNotify。
**示例代码**
```
// 摄像头关闭   
if (mShareServiceController != NULL) {   
    mShareServiceController->SetRemoteCameraMute(true);   
}
```
