API / streamZ/MSP 325N / Layer
Layer Commands: PIP/Signal Source
Applies to
streamZ, MSP 325N
Read PIP mode
| Symbol | Size (Byte) | Definition | Remarks |
|---|---|---|---|
| CMD | 1 | 0XE1 | |
| DAT1 | 1 | 0X10 | |
| DAT2 | 1 | 0X02 | |
| DAT3 | 1 | Data block length (LSB) | |
| DAT4 | 1 | Data block length (MSB) |
Send command example
: {"language":1}f
Response command example: {"code":0,"deviceUuid":"0122477JPRTA69000001","msg":"成功","language":1,"data":{"pipMode":0}}1
Response Data Block Description
| Parameter | Required | Type | Description |
|---|---|---|---|
| pipMode | * | int | Current PIP mode index value of the device |
| 0:PIP_MODE_OFF PIP off | |||
| 1:PIP_MODE_LEFT_TOP sub-picture top-left | |||
| 2:PIP_MODE_RIGHT_TOP sub-picture top-right | |||
| 3:PIP_MODE_LEFT_BOTTOM sub-picture bottom-left | |||
| 4:PIP_MODE_RIGHT_BOTTOM sub-picture bottom-right | |||
| 5:PIP_MODE_CENT sub-picture centered | |||
| 6:PIP_MODE_PBP_R horizontal 1-split-2 AB | |||
| 7:PIP_MODE_PBP_L horizontal 1-split-2 BA | |||
| 8:PIP_MODE_LEFT_MID sub-picture centered, left | |||
| 9:PIP_MODE_RIGHT_MID sub-picture centered, right | |||
| 10:PIP_MODE_LEFT_RIGHT left-right symmetric | |||
| 16:PIP_MODE_SIGLE_A A unchanged, B layer off | |||
| 17:PIP_MODE_SIGLE_B B unchanged, A layer off | |||
| 18:PIP_MODE_ALL all layers on | |||
| 19:PIP_MODE_BLANK all layers off |
Set PIP Mode
| Symbol | Size (Byte) | Definition | Remarks |
|---|---|---|---|
| CMD | 1 | 0XE0 | |
| DAT1 | 1 | 0X10 | |
| DAT2 | 1 | 0X02 | |
| DAT3 | 1 | Data block length (LSB) | |
| DAT4 | 1 | Data block length (MSB) |
Send command example
: {"language":1,"pipMode":0}f
Response command example: {"code":0,"deviceUuid":"0122477JPRTA69000001","msg":"成功"}1
Send Data Block Description
| Parameter | Required | Type | Description |
|---|---|---|---|
| pipMode | * | int | Current PIP mode index value of the device |
Read The Signal Source of A Layer
| Symbol | Size (Byte) | Definition | Remarks |
|---|---|---|---|
| CMD | 1 | 0XE1 | |
| DAT1 | 1 | 0X10 | |
| DAT2 | 1 | 0X08 | |
| DAT3 | 1 | Data block length (LSB) | |
| DAT4 | 1 | Data block length (MSB) |
Send command example
: {"language":1,"layerIndex":1,"type":0}f
Response command example: {"code":0,"deviceUuid":"0122477JPRTA69000001","msg":"成功","language":1,"data":{"layerIndex":1,"inputPort":1,,"type":0}}1
Send Data Block Description
| Parameter | Required | Type | Description |
|---|---|---|---|
| layerIndex | int | Layer index | |
| 0:pst A | |||
| 1:pst B | |||
| 2:Pst background | |||
| 3:Pst logo | |||
| 4:Pst overlay | |||
| 5:Pst txt/osd | |||
| 6:pgm A | |||
| 7:pgm B | |||
| 8:pgm background | |||
| type | int | Signal source type | |
| 0 : Video; inputPort: 0 (HDMI), 1 (uvc1), 2 (phone), 3 (uvc2) | |||
| 1 : Audio; inputPort: 0 (hdmi), 1 (uvc1), 2 (phone), 3 (line in), 4 (AI mini), 5 (mic), 6 (uvc2) |
Response Data Block Description
| Parameter | Required | Type | Description |
|---|---|---|---|
| layerIndex | int | Layer index | |
| inputPort | int | Signal source index | |
| type | int | Signal source type | |
| 0 : Video; inputPort: 0 (HDMI), 1 (uvc1), 2 (phone), 3 (uvc2) | |||
| 1 : Audio; inputPort: 0 (HDMI), 1 (uvc1), 2 (phone), 3 (line in), 4 (AI mini), 5 (mic), 6 (uvc2) | |||
| smallInputPort | int | Small picture layer index (Yunbao) | |
| smallInputMode | int | Small picture landscape 0, portrait 1 (Yunbao) |
Set The Signal Source of A Layer
| Symbol | Size (Byte) | Definition | Remarks |
|---|---|---|---|
| CMD | 1 | 0XE0 | |
| DAT1 | 1 | 0X10 | |
| DAT2 | 1 | 0X08 | |
| DAT3 | 1 | Data block length (LSB) | |
| DAT4 | 1 | Data block length (MSB) |
Send command example
: {"language":1,"layerIndex":1,"inputPort":1,"type":0}f
Response command example: {"code":0,"deviceUuid":"0122477JPRTA69000001","msg":"成功","language":1}1
Send Data Block Description
| Parameter | Required | Type | Description |
|---|---|---|---|
| layerIndex | int | Layer index | |
| 0:pst A | |||
| 1:pst B | |||
| 2:Pst background | |||
| 3:Pst logo | |||
| 4:Pst overlay | |||
| 5:Pst txt/osd | |||
| 6:pgm A | |||
| 7:pgm B | |||
| 8:pgm background | |||
| 9:pgm logo | |||
| 10:pgm overlay | |||
| 11:pgm txt/osd | |||
| inputPort | int | Signal source index | |
| type | int | Signal source type | |
| 0 : Video;inputPort: 0 (HDMI), 1 (uvc1), 2 (phone), 3 (uvc2) | |||
| 1 : Audio; inputPort: 0 (hdmi), 1 (uvc1), 2 (phone), 3 (line in), 4 (AI mini), 5 (mic), 6 (uvc2) | |||
| smallInputPor | int | Small picture layer index (Yunbao) | |
| smallInputMode | int | Small picture landscape 0, portrait 1 (Yunbao) |