screenId: Screen ID
deviceId: Device ID
name: Layer name
layerId: Custom layer ID
sizeType: The definition is as follows.
[
0: SL
1: DL,
2: 4K
];
type: Layer type (The definition is as follows.)
[
0: mix
1: SL
2: remapping
];
zorder: Layer z-order
source: Layer source information
window: Layer position information
color: No-source layer color
zorder: Layer z-order
isBackground: Whether the layer is set as the screen background
width, height: Layer width and height
x, y: Layer coordinates
"sourceType: Source type (The definition is as follows.)
[
0: No source
1: Input type
3: IPC type
4: Pure color layer
5: IPC mosaic type
];
inputId: Source ID
cropId: Cropped source ID (When the cropping ID is 255, the original source is used.)
isAvailable: Whether the layer audio is available. (Read only)
isOpen: Whether the layer audio is played. (r/w)
lock: Whether the layer is locked or not.
connectCapacity: Connection capacity{
"body": {
"deviceId": 0,
"screenId": 3,
"layers": [
{
"layerId": 0,
"general": {
"layerId": 0,
"zorder": 0,
"name": "Layer 1",
"isBackground": false,
"isFreeze": false,
"flipType": 0
},
"lock": 0,
"source": {
"sourceType": 1,
"inputId": 4,
"cropId": 255,
"interfaceType": 10,
"connectCapacity": 0,
"name": "input 2-1"
},
"window": {
"width": 960,
"height": 540,
"x": 1000,
"y": 1000
}
},
{
"layerId": 1,
"general": {
"layerId": 1,
"zorder": 1,
"name": "Layer 2",
"isBackground": false,
"isFreeze": false,
"flipType": 0
},
"lock": 0,
"source": {
"sourceType": 1,
"inputId": 5,
"cropId": 255,
"interfaceType": 10,
"connectCapacity": 0,
"name": "input 2-2"
},
"window": {
"width": 960,
"height": 540,
"x": 1960,
"y": 1000
}
},
{
"layerId": 2,
"general": {
"layerId": 2,
"zorder": 2,
"name": "Layer 3",
"isBackground": false,
"isFreeze": false,
"flipType": 0
},
"lock": 0,
"source": {
"sourceType": 1,
"inputId": 6,
"cropId": 255,
"interfaceType": 10,
"connectCapacity": 0,
"name": "input 2-3"
},
"window": {
"width": 960,
"height": 540,
"x": 1000,
"y": 1540
}
},
{
"layerId": 3,
"general": {
"layerId": 3,
"zorder": 3,
"name": "Layer 4",
"isBackground": false,
"isFreeze": false,
"flipType": 0
},
"lock": 0,
"source": {
"sourceType": 1,
"inputId": 7,
"cropId": 255,
"interfaceType": 10,
"connectCapacity": 0,
"name": "input 2-4"
},
"window": {
"width": 960,
"height": 540,
"x": 1960,
"y": 1540
}
}
]
},
"sign": "MjI0OGYzMGQwMjhlMmI4YTNmMjM2MjE3MjYzYTFkODg=",
"pId": "1",
"timeStamp": "1631949094265"
}curl --location --request POST '/open/api/layer/screenLayerLayout' \
--header 'Content-Type: application/json' \
--data-raw '{
"body": {
"deviceId": 0,
"screenId": 3,
"layers": [
{
"layerId": 0,
"general": {
"layerId": 0,
"zorder": 0,
"name": "Layer 1",
"isBackground": false,
"isFreeze": false,
"flipType": 0
},
"lock": 0,
"source": {
"sourceType": 1,
"inputId": 4,
"cropId": 255,
"interfaceType": 10,
"connectCapacity": 0,
"name": "input 2-1"
},
"window": {
"width": 960,
"height": 540,
"x": 1000,
"y": 1000
}
},
{
"layerId": 1,
"general": {
"layerId": 1,
"zorder": 1,
"name": "Layer 2",
"isBackground": false,
"isFreeze": false,
"flipType": 0
},
"lock": 0,
"source": {
"sourceType": 1,
"inputId": 5,
"cropId": 255,
"interfaceType": 10,
"connectCapacity": 0,
"name": "input 2-2"
},
"window": {
"width": 960,
"height": 540,
"x": 1960,
"y": 1000
}
},
{
"layerId": 2,
"general": {
"layerId": 2,
"zorder": 2,
"name": "Layer 3",
"isBackground": false,
"isFreeze": false,
"flipType": 0
},
"lock": 0,
"source": {
"sourceType": 1,
"inputId": 6,
"cropId": 255,
"interfaceType": 10,
"connectCapacity": 0,
"name": "input 2-3"
},
"window": {
"width": 960,
"height": 540,
"x": 1000,
"y": 1540
}
},
{
"layerId": 3,
"general": {
"layerId": 3,
"zorder": 3,
"name": "Layer 4",
"isBackground": false,
"isFreeze": false,
"flipType": 0
},
"lock": 0,
"source": {
"sourceType": 1,
"inputId": 7,
"cropId": 255,
"interfaceType": 10,
"connectCapacity": 0,
"name": "input 2-4"
},
"window": {
"width": 960,
"height": 540,
"x": 1960,
"y": 1540
}
}
]
},
"sign": "MjI0OGYzMGQwMjhlMmI4YTNmMjM2MjE3MjYzYTFkODg=",
"pId": "1",
"timeStamp": "1631949094265"
}'{
"data": {},
"msg": "",
"status": 0
}