Skip to content

获取当前通话状态

方法名

getCallState

用法

  • 用法如下:
    js
    module.getCallState(res => {
      this.writeLog(JSON.stringify(res))
    });
  • 参数说明 无

回调

  • 示例
    json
    {
      "data": {
        "state": 0
      },
      "message": "",
      "code": 0
    }
  • 回调说明:
    参数名参数类型参数描述
    messageString消息提示
    dataObject数据对象
    data.stateInteger通话状态:0.空闲状态,1.响铃,2.通话中
    codeInteger返回类型,0.成功,其他:失败