更新时间:2022-03-21 GMT+08:00
分享

打开/关闭扬声器

接口描述

该接口用于控制服务端扬声器打开或关闭。

注意事项

连接设备后使用。

接口定义

/* 打开\关闭扬声器 */   
int SetRemoteSpeakerMute(bool isSpeakerMute);

参数描述

参数

是否必须

类型

描述

isSpeakerMute

bool

true 扬声器静音

false 扬声器打开

返回值

0 接口调用成功 非0 接口调用失败

异步回调事件结果

参见4.6.4.1.9 OnSetRemoteSpeakerMuteResult和4.6.4.2.1 OnRemoteServiceStatusChangedNotify。

示例代码

 // 扬声器静音   
 if (mShareServiceController != NULL) {   
     mShareServiceController->SetRemoteSpeakerMute(true);   
 }
分享:

    相关文档

    相关产品