update-scene-of-button

Use the interface to customize functions for buttons.

Request Mode

 POST http://ip/mwapi/update-scene-of-button
Parameter Description
showId The presentation ID
sceneOfButton1 The scene ID or event ID bound to button 1, required, valid only in custom mode
sceneOfButton2 The scene ID or event ID bound to button 2, required, valid only in custom mode
sceneOfButton3 The scene ID or event ID bound to button 3, required, valid only in custom mode
sceneOfButton4 The scene ID or event ID bound to button 4, required, valid only in custom mode
sceneOfButton5 The scene ID or event ID bound to button 5, required, valid only in custom mode
{
    "showId":1,
    "sceneOfButton1":-37
}

Response Body

JSON structure is as follows:

{
    "message": "success",
    "status": 0
}
Name Description
status 0 indicates that the request was accepted successfully. Refer to API Status Codes to find specific description for other values.

Definition of Event ID

manually_button_action_type_none = 0, //Disable
manually_button_action_type_hdmi1 = -10, //Switch to HDMI 1
manually_button_action_type_hdmi2 = -11, //Switch to HDMI 2
manually_button_action_type_swebcam = -12, //Switch to WEBCAM
manually_button_action_type_screenmirroring = -13, //Switch to screencast
manually_button_action_type_pip = -14, //Switch to PIP/Switch PIP location
manually_button_action_type_pip_source = -15, //Switch sources of PIP
manually_button_action_type_sbs = -16, //Switch to SBS/Switch SBS location
manually_button_action_type_sbs_source = -17, //Switch sources of SBS
manually_button_action_type_swap = -18, //Swap sources of PIP or SBS

manually_button_action_type_first_scene = -20, //Switch to the first scene
manually_button_action_type_last_scene = -21, //Switch to the last scene
manually_button_action_type_next_scene = -22, //Switch to the next scene
manually_button_action_type_previous_scene = -23, //Switch to the previous scene

manually_button_action_type_record = -30, //Start recording/Stop recording
manually_button_action_type_screenshot = -31, //Screenshot
manually_button_action_type_video_control = -32, //Play/Pause video (current scene)
manually_button_action_type_bgm_control = -33, //Play/Pause BGM (current scene)
manually_button_action_type_ftb_control = -34, //Toggle on/off FTB
manually_button_action_type_audio_out_control = -35, //Mute/Unmute master audio
manually_button_action_type_mic_control = -36, //Mute/Unmute MIC
manually_button_action_type_freeze_control = -37, //Freeze/Unfreeze scene
manually_button_action_type_streaming_control = -38, //Start/Stop streaming

manually_button_action_type_first_page = -40, //Go to the first page (current scene)
manually_button_action_type_last_page = -41, //Go to the last page (current scene)
manually_button_action_type_next_page = -42, //Page down (current scene)
manually_button_action_type_previous_page= -43, //Page up (current scene)

manually_button_action_type_wake_up = -50, //Wake up
manually_button_action_type_fall_to_sleep = -51, //Go to sleep

manually_button_action_type_start_recording = -100, //Start recording
manually_button_action_type_stop_recording = -101, //Stop recording
manually_button_action_type_start_streaming = -102, //Start streaming
manually_button_action_type_stop_streaming = -103, //Stop streaming
manually_button_action_type_play_video = -104, //Play video (current scene)
manually_button_action_type_stop_video = -105, //Pause video (current scene)
manually_button_action_type_play_bgm = -106, //Play BGM (current scene)
manually_button_action_type_stop_bgm = -107, //Pause BGM (current scene)
manually_button_action_type_toggle_on_ftb = -108, //Toggle on FTB
manually_button_action_type_toggle_off_ftb = -109, //Toggle off FTB
manually_button_action_type_mute_master_audio = -110, //Mute master audio
manually_button_action_type_unmute_master_audio = -111, //Unmute master audio
manually_button_action_type_mute_mic = -112, //Mute MIC
manually_button_action_type_unmute_mic = -113, //Unmute MIC
manually_button_action_type_freeze_scene = -114, //Freeze scene
manually_button_action_type_unfreeze_scene = -115, //Unfreeze scene

results matching ""

    No results matching ""