get-device-status
Use the interface to get the status information of the device.
Request Mode
POST http://ip/mwapi/get-device-status
Response Body
JSON structure is as follows:
{
"result": 0,
"message": "success",
"info": {...}
}
1. Response Status
"status": 0
Name | Description |
---|---|
status | 0 indicates a successful data acquisition. Refer to API Status Codes to find specific description for other values. |
2. Basic Status Information (info {...})
"info": {
"annotationStatus": {
"arrowWidth": 4,
"boardMode": 2,
"eraserWidth": 34,
"fillColor": 0,
"highlighterWidth": 20,
"inkDuration": 2000,
"inkStyle": 0,
"laserpointerPosX": 142089,
"laserpointerPosY": 675347,
"lineWidth": 2,
"lowerFactor": 0,
"shapeType": 4,
"strokeColor": 44230911,
"upperFactor": 500000,
"useStroke": false
},
"ftbEnable": 0,
"musicStatus": {
"currentMusicId": 201,
"duration": 253000,
"policy": 4,
"progress": 147919,
"status": 1
},
"recordStatus": {
"lastRecordError": 0,
"recording": 1,
"timeRecording": 18,
"timeRemaining": 84640
},
"sceneStatus": {
"cropping": 0,
"croppingLayerId": 0,
"currentID": 246,
"currentShowId": 4,
"editing": 0,
"currentShowId": 7,
"defaultNoteBgId": 1001,
"isFrozen": 0,
"lastNoteId": 114,
"lastSceneId": 246,
"noteEditing": 0
},
"srtStatus": [
{
"port": 9110,
"srtId": 0,
"stoped": 0
},
{
"port": 9111,
"srtId": 1,
"stoped": 0
},
{
"port": 9112,
"srtId": 2,
"stoped": 0
},
{
"port": 9113,
"srtId": 3,
"stoped": 0
},
{
"port": 9114,
"srtId": 4,
"stoped": 0
}
],
"videoPlayerStatus": [
{
"layerId": 0,
"playStatus": 0,
"progress": 801324,
"sourceDuration": 18875,
"sourceId": 1191
}
]
},
Name | Description |
---|---|
annotationStatus | The configuration of annotation |
ftbEnable | Whether to enable FTB 0: not enabled 1: enabled |
musicStatus | The status information of the BGM player |
recordStatus | The status information of the recording |
sceneStatus | The status information of the current scene |
srtStatus | The SRT server status information of the captured scene |
videoPlayerStatus | The video player status information of the current scene |
Status Information of BGM Player (musicStatus)
Name | Description |
---|---|
currentMusicId | The ID of current music |
duration | The duration of audio file in ms |
policy | The play policy 1: play in order 2: shuffle the playlist 3: repeat a single song 4: repeat the playlist |
progress | The play progress (0 - 1000000) |
status | The play status 0: pause 1: playing |
Status Information of Recording (recordStatus)
Name | Description |
---|---|
lastRecordError | The information of the last record error |
recording | Recording task status 0: not enabled 1: recording |
timeRecording | The duration of the recording in seconds |
timeRemaining | The remaining recording duration in seconds |
Status Information of Current Scene (sceneStatus)
Name | Description |
---|---|
currentShowId | The ID of the current presentation |
currentID | The ID of the current preview scene |
lastNoteId | The ID of the last preview note |
lastSceneId | The ID of the last preview scene |
editing | Whether the scene is editing 0: false 1: true |
editSceneId | The ID of the editing scene |
defaultNoteBgId | The ID of the default note background source |
cropping | Whether the layer is cropping 0: false 1: true |
croppingLayerId | The ID of the cropping layer |
isFrozen | Whether the preview scene is frozen 0: false 1: true |
Video Player Status Information of Current Scene (videoPlayerStatus)
Name | Description |
---|---|
layerId | The layer ID |
playStatus | The player status 0: pause 1: playing |
progress | The player progress (0 - 1000000) |
sourceDuration | The length of the source video in ms |
sourceId | The source ID |
SRT Streaming Configuration
Name | Description |
---|---|
srtId | The srtId 0: preview scene 0: HDMI 1 2: HDMI 2 3: USB Camera |
port | The port number |
stopped | The start or stop status 1: stopped 0: started |