Get HDMI output signal status
1. API Description
This API is used to get the status information of the HDMI output signal.
Request mode:
- V2.6.0 and above: POST [ip]/mwapi/V2.0/output/get-hdmi-output-info
- V2.5.0 and below: POST [ip]/mwapi/get-hdmi-output-info
Administrator Rights | Logged-in |
---|---|
No | Yes |
2. Input Parameters
None
3. Output Parameters
Name | Type | Description |
---|---|---|
status | Int | Status code |
a-state | Int | The status of the HDMI 1 input signal 0: No signal; 1: Invalid signal. The device detects a signal but cannot lock it; 2: Locking signal; 3: The device can capture the signal |
b-state | Int | The status of the HDMI 2 input signal 0: No signal; 1: Invalid signal. The device detects a signal but cannot lock it; 2: Locking signal; 3: The device can capture the signal |
mode | Int | The output image 0: HDMI 1; 1: HDMI 2; 2: PROGRAM |
data | String | The EDID information, in Base64 format, which needs to be converted to hexadecimal value when displayed |
resolutions | Array of ResolutionData | The output formats supported by the device. |
cur-resolution | ResolutionData | The output format currently used by the device. |
ResolutionData
Name | Type | Description |
---|---|---|
width | Int | Video width, in px |
height | Int | Video height, in px |
field-rate | Int | Frame rate (fps X 100) |
preferred | Boolean | Whether it is the recommended format true: Yes; false: No |
4. Example
Getting the status information of the HDMI output signal.
Input Example
None
Output Example
{
"status": 0,
"a-state": 0,
"b-state": 0,
"mode": 2,
"data": "AP///////wA09wEAAQAAAAEaAQOAAAB4Au6Vo1RMmSYPUFT//4AxQEVAYUBxQIGA0QDhwAEAGjaAoHA4H0AwIDUAQEQhAAAeTdAAoPBwPoAwIDUAgIhCAAAeAAAA/ABEaXJlY3RvciBNaW5pAAAA/ABEaXJlY3RvciBNaW5pAfwCA1HxV2EQHwQTBRQgISJdXl9gZWZiY2QKFgMSMgl/BxUHUD0GwFcGAF9/AWd/AINPAADiAA9uAwwAEAC4eCEQgAECAwRn2F3EAXiAA+MPAeABHYAYcRwWIFgsJQBAhGMAAJ5mIVaqUQAeMEaPMwBQHXQAAB4AAAAAAAAAAAAAzA==",
"resolutions": [
{
"width": 1920,
"height": 1080,
"fps": 6000,
"preferred": true
},
{
"width": 2048,
"height": 1152,
"fps": 6000,
"preferred": false
},
{
"width": 1366,
"height": 768,
"fps": 6000,
"preferred": false
},
{
"width": 1280,
"height": 720,
"fps": 6000,
"preferred": false
},
{
"width": 1024,
"height": 768,
"fps": 6000,
"preferred": false
},
{
"width": 800,
"height": 600,
"fps": 6000,
"preferred": false
},
{
"width": 720,
"height": 480,
"fps": 6000,
"preferred": false
},
{
"width": 640,
"height": 480,
"fps": 6000,
"preferred": false
}
],
"cur-resolution": {
"width": 1920,
"height": 1080,
"fps": 6000
}
}
5. Error Code
No error code related to the API business logic. For other error codes, see Common Error Codes.