MSG_WEB_SORKET_EVENT_CHANGE_INFO
Use WebSocket to establish a connection to monitor the device status change information.
Request Mode
ws://xx.xx.xx.xx/ws_up_state
Response Body
{
"event":4001,
"info":{
"statusType":2003
}
}
Name | Description |
---|---|
event | The event type |
info | The event information |
event type
Name | Value | Description |
---|---|---|
MSG_WEB_SORKET_EVENT_START | 4000 | The start identifier, no meaning |
MSG_WEB_SORKET_EVENT_CHANGE_INFO | 4001 | The device information change event |
MSG_WEB_SORKET_EVENT_END | 4002 | The end identifier, no meaning |
statusType
Value | Description |
---|---|
2000 | DEVICE_STATUS_CHANGED_PRESENTATION_LIST The presentation list is changed. |
2001 | DEVICE_STATUS_CHANGED_PRESENTATION_CURRENT The presentation is switched. |
2002 | DEVICE_STATUS_CHANGED_SCENE_LIST The scene list is changed. |
2003 | DEVICE_STATUS_CHANGED_SCENE_CURRENT The current preview scene is switched. |
2004 | DEVICE_STATUS_CHANGED_BGM_LIST The BGM list is changed. |
2005 | DEVICE_STATUS_CHANGED_BGM_STATUS The BGM playing status is changed. |
2006 | DEVICE_STATUS_CHANGED_SOUTCE_LIST The source list is changed. |
2007 | DEVICE_STATUS_CHANGED_ALBUM_LIST The album list is changed. |
2008 | DEVICE_STATUS_CHANGED_VOLUME_SETTINGS The audio setting is changed. |
2009 | DEVICE_STATUS_CHANGED_FTB_ENABLE The FTB enabling status is changed, and the status data can be obtained by /mwapi/get-device-status. |
2010 | DEVICE_STATUS_CHANGED_RECORD_STATUS_CHANGED The recording status is changed. |
2011 | DEVICE_STATUS_CHANGED_EDIT_MODE The scene edit mode is changed, such as: {"event":4001,"info":{"editSceneId":104,"editing":1,"statusType":2011}} |
2012 | DEVICE_STATUS_CHANGED_SOURCE The source is changed (the capture source signal is plugged in or out), such as: {"event":4001,"info":{"sourceId":1,"statusType":2012}} |
2013 | DEVICE_STATUS_CHANGED_LANDING_SCREENS The landing scene list is changed. |
2014 | DEVICE_STATUS_CHANGED_CURRENT_LANDING_SCREEN The current selected landing scene is changed. |
2015 | DEVICE_STATUS_CHANGED_SERVER_CONFIG The general settings of the device are changed. |
2016 | DEVICE_STATUS_CHANGED_OSD The GFX enabling status is changed. |
2017 | DEVICE_STATUS_CHANGED_OSD_LIST The GFX list is changed. |
2018 | DEVICE_STATUS_CHANGED_PDF_STATUS The PDF preview position is changed, such as: {"event":4001,"info":{"pdfPosition":100,"statusType":2011}} |
2019 | DEVICE_STATUS_CHANGED_PDF_IMPORTING The PDF importing status, such as: {"event":4001,"info":{"pdfImportResult":{"status":5,"totalCount":40,"currentPage":4},"statusType":2011}} |
2020 | DEVICE_STATUS_CHANGED_PRESENTATION_EXPORT The presentation exporting status, such as: {"event":4001,"info":{"currentTask":0,"fileName":"ID_3_New Presentation 1.tar","fileSize":12800,"status":0,"statusType":2020,"totalTask":0}}, status, 0: Successful 1: Failed 2: Processing resources 3: Processing configuration 4: Task cancelled 5: System busy |
2021 | DEVICE_STATUS_CHANGED_PRESENTATION_IMPORT The presentation importing stats, such as: {"event":4001,"info":{"status":100,"totalTask":10,"currentTask":5}}, status, 0: Successful 1: Failed 2: Processing resources 3: Processing configuration 4: Task cancelled 5: System busy |
2022 | DEVICE_STATUS_CHANGED_WEB_BROWSER_STATUS The web page layer status is changed. |
2023 | DEVICE_STATUS_CHANGED_IMPORT_WEB_BROWSER The web page importing status |
2024 | DEVICE_STATUS_CHANGED_SOURCE_THUMB The source thumbnail is changed. |
2025 | DEVICE_STATUS_CHANGED_RECORD_ENCODER_PARAM The recording encoder parameters are changed. |
2026 | DEVICE_STATUS_CHANGED_APP_SETTINGS App settings are changed. |
2027 | DEVICE_STATUS_CHANGED_WORKING_STATUS The device working status is changed. {"deviceWorkingStatus":0} 0: Idle, 1: Recording, 2: Uploading files, 3: Downloading files, 4: Exporting a presentation, 5: Importing a presentation |
2028 | DEVICE_STATUS_CHANGED_ALBUM_FILE_BACKUP_STATUS The backup working status {"albumId":0,"backup":2,"progress":1,"step":1}, albumId0: Idle 1: Recording 2: Uploading files 3: Downloading files, 4: Exporting a presentation 5: Importing a presentation |
2029 | DEVICE_STATUS_CHANGED_SLEEP The sleep setting of the device is changed. |
2030 | DEVICE_STATUS_CHANGED_SCENE_OF_BUTTON_CONFIG The button binding mode is changed. |
DEVICE_STATUS_CHANGED_ALBUM_FILE_BACKUP_STATUS
|Name|Description|
|:----|:----|
|albumId |The ID of the album file to back up|
|backup |The task status. 0: Not synchronized 1: Synchronized 2: Synchronizing|
|progress |The uploading progress, ranging from 0 to 1000000|
|step |The task progress.
1: Authenticating
2: Authentication failed
3: Authentication succeeded
11: Create the file
12: Failed to create
13: Created
21: Uploading the file
22: Failed to upload
23: Uploaded
100: Network timeout 101: Waiting
102: Cancel
103: Invalid account authentication|