Event/Device

1)EnableCamera(开启摄像头)

接口支持最低版本号:3.8.10

{
    "jsonrpc": "2.0",
    "method":"Event/Device",
    "result":{
        "error_code":0,
        "message":"",
	"sub_event": "EnableCamera",
        "data":{
            "in_meeting":{
                "camera_open":false
            }
        }
    }
}

2)EnableMic(开启麦克风)

接口支持最低版本号:3.8.10

{
    "jsonrpc": "2.0",
    "method":"Event/Device",
    "result":{
        "error_code":0,
        "message":"",
	"sub_event": "EnableMic",
        "data":{
            "in_meeting":{
                "mic_open":false
            }
        }
    }
}

3)SetSpeakerVolume(设置扬声器音量)

接口支持最低版本号:3.8.10

{
    "jsonrpc": "2.0",
    "method":"Event/Device",
    "result":{
        "error_code":0,
        "message":"",
	"sub_event": "SetSpeakerVolume",
        "data":{
            "in_meeting":{
                "volume":50,
		"mute": true,
            }
        }
    }
}

4)SelectSpeaker  (选择扬声器)

接口支持最低版本号:3.9.150

{
   "jsonrpc": "2.0",
    "method":"Event/Device",
    "result":{
        "error_code":0,
        "message":"",
	"sub_event": "SelectSpeaker",
        "data":{
		"device_id": "External Headphones", 
		"is_system_device": false,
        }
    }
}

5)SelectMic  (选择麦克风)

接口支持最低版本号:3.9.150

{
    "jsonrpc": "2.0",
    "method":"Event/Device",
    "result":{
        "error_code":0,
        "message":"",
	"sub_event": "SelectMic",
        "data":{
		"device_id": "External Headphones", 
		"is_system_device": false,
        }
    }
}

6)SpeakerTestStateChange  (扬声器测试状态变化)

接口支持最低版本号:3.9.150

{
    "jsonrpc": "2.0",
    "method":"Event/Device",
    "result":{
        "error_code":0,
        "message":"",
	"sub_event": "SpeakerTestStateChange",
        "data":{
		"state": 0  // 0 停止,1 启动
        }
    }
}

7)SpeakerTestVolumeChange  (扬声器测试音量变化)

接口支持最低版本号:3.9.150

{
    "jsonrpc": "2.0",
    "method":"Event/Device",
    "result":{
        "error_code":0,
        "message":"",
	"sub_event": "SpeakerTestVolumeChange",
        "data":{
		"volume": 50  // 音量值 0 - 100
        }
    }
}

8)MicTestStateChange  ( 麦克风测试状态变化)

接口支持最低版本号:3.9.150

{
    "jsonrpc": "2.0",
    "method":"Event/Device",
    "result":{
        "error_code":0,
        "message":"",
	"sub_event": "MicTestStateChange",
        "data":{
		"state": 0  // 0 停止,1 启动
        }
    }
}

9)MicTestVolumeChange  ( 麦克风测试音量变化)

接口支持最低版本号:3.9.150

{
    "jsonrpc": "2.0",
    "method":"Event/Device",
    "result":{
        "error_code":0,
        "message":"",
	"sub_event": "MicTestVolumeChange",
        "data":{
		"volume": 50  // 音量值 0 - 100
        }
    }
}

10)NetworkInfo  (网络状态变化)

接口支持最低版本号:3.13.190

{
    "jsonrpc": "2.0",
    "method":"Event/Device",
    "result":{
        "error_code":0,
        "message":"",
        "sub_event": "NetworkStateChange",
        "data":{
            "network_level": int  // 网络状态,详见如下表格
        }
    }
}
network_level 描述
0 网络未连接
1
2
3
下载 Event/Device.pdf
Copyright(C)2023 HFBangFu Inc. All Rights Reserved 皖ICP备12017563号-5