更新时间:2022-03-21 GMT+08:00
打开/关闭摄像头
接口描述
该接口用于控制服务端摄像头打开关闭。
注意事项
连接设备后使用。
接口定义
/* 打开\关闭摄像机 */ int SetRemoteCameraMute(bool isCameraMute);
参数描述4.6.4.2.1
参数 | 是否必须 | 类型 | 描述 |
|---|---|---|---|
isCameraMute | 是 | bool | true 摄像头关闭 false 摄像头打开 |
返回值
0 接口调用成功 非0 接口调用失败
异步回调事件结果
参见4.6.4.1.10 OnSetRemoteCameraMuteResult和 4.6.4.2.1 OnRemoteServiceStatusChangedNotify。
示例代码
// 摄像头关闭
if (mShareServiceController != NULL) {
mShareServiceController->SetRemoteCameraMute(true);
} 父主题:遥控器

