update-scene-of-button 接口
设置设备按钮自定义绑定关系
请求方式
POST http://ip/mwapi/update-scene-of-button
参数 | 说明 |
---|---|
showId | 演示稿ID |
sceneOfButton1 | 设备按键一指向的画面 ID 或事件 ID,必要参数,仅在自定义模式先有效 |
sceneOfButton2 | 设备按键二指向的画面 ID 或事件 ID,必要参数,仅在自定义模式先有效 |
sceneOfButton3 | 设备按键三指向的画面 ID 或事件 ID,必要参数,仅在自定义模式先有效 |
sceneOfButton4 | 设备按键四指向的画面 ID 或事件 ID,必要参数,仅在自定义模式先有效 |
sceneOfButton5 | 设备按键五指向的画面 ID 或事件 ID,必要参数,仅在自定义模式先有效 |
{
"showId":1,
"sceneOfButton1":-37
}
返回数据
JSON 结构如下:
{
"message": "success",
"status": 0
}
属性 | 说明 |
---|---|
status | 返回状态。0:请求成功,返回其它值请参考 API 状态码。 |
事件 ID 定义
manually_button_action_type_none = 0, //禁用
manually_button_action_type_hdmi1 = -10, //切到 HDMI 1
manually_button_action_type_hdmi2 = -11, //切到 HDMI 2
manually_button_action_type_swebcam = -12, //切到 WEBCAM
manually_button_action_type_screenmirroring = -13, //切到无线投屏画面
manually_button_action_type_pip = -14, //切到画中画/切换画中画位置
manually_button_action_type_pip_source = -15, //切换画中画的源
manually_button_action_type_sbs = -16, //切到分屏画面/切换分屏画面Location
manually_button_action_type_sbs_source = -17, //切换分屏画面的源
manually_button_action_type_swap = -18, //交换画中画或分屏画面的源
manually_button_action_type_first_scene = -20, //切到当前演示稿第一个画面
manually_button_action_type_last_scene = -21, //切到当前演示稿最后一个画面
manually_button_action_type_next_scene = -22, //切到当前演示稿下一个画面
manually_button_action_type_previous_scene = -23, //切到当前演示稿上一个画面
manually_button_action_type_record = -30, //开始录制/停止录制
manually_button_action_type_screenshot = -31, //拍照
manually_button_action_type_video_control = -32, //播放/暂停视频(当前场景)
manually_button_action_type_bgm_control = -33, //播放/暂停BGM(当前场景)
manually_button_action_type_ftb_control = -34, //启用/取消 FTB
manually_button_action_type_audio_out_control = -35, //主声道音频的静音或非静音控制
manually_button_action_type_mic_control = -36, //麦克风的静音或非静音控制
manually_button_action_type_freeze_control = -37, //画面冻结/取消画面冻结
manually_button_action_type_streaming_control = -38, //直播推流启停控制
manually_button_action_type_first_page = -40, //第一页文档(当前场景)
manually_button_action_type_last_page = -41, //最后一页文档(当前场景)
manually_button_action_type_next_page = -42, //下一页文档(当前场景)
manually_button_action_type_previous_page= -43, //上一页文档(当前场景)
manually_button_action_type_wake_up = -50, //唤醒设备
manually_button_action_type_fall_to_sleep = -51, //设备进入休眠
manually_button_action_type_start_recording = -100, //启动录制
manually_button_action_type_stop_recording = -101, //停止录制
manually_button_action_type_start_streaming = -102, //启动直播推流
manually_button_action_type_stop_streaming = -103, //停止直播推流
manually_button_action_type_play_video = -104, //播放当前场景视频
manually_button_action_type_stop_video = -105, //暂停当前场景视频
manually_button_action_type_play_bgm = -106, //播放BGM
manually_button_action_type_stop_bgm = -107, //暂停BGM
manually_button_action_type_toggle_on_ftb = -108, //启用FTB
manually_button_action_type_toggle_off_ftb = -109, //取消FTB
manually_button_action_type_mute_master_audio = -110, //主声道静音
manually_button_action_type_unmute_master_audio = -111, //主声道取消静音
manually_button_action_type_mute_mic = -112, //麦克风静音
manually_button_action_type_unmute_mic = -113, //麦克风取消静音
manually_button_action_type_freeze_scene = -114, //冻结画面
manually_button_action_type_unfreeze_scene = -115, //取消冻结画面