get-landing-scene-sources-list
Use the interface to get the list of available sources to create a landing scene.
Request Mode
POST http://ip/mwapi/get-landing-scene-sources-list
Parameter | Description |
---|---|
type | The source type 1: picture, 2: video, 0: preset sources (capture + picture + video) |
Response Body
JSON structure is as follows:
{
"info": {
"pageIndex": 0,
"sourceList": [
{
"duration": 0,
"filePath": "4/4.jpeg",
"height": 1080,
"homeUrl": "",
"id": 4,
"name": "default",
"rotation": 0,
"thumbnailPath": "4/4.thumb.jpeg",
"totalPageNumber": 0,
"type": 1,
"url": "",
"width": 1920
},
{
"duration": 367375,
"filePath": "2039/2039.mp4",
"height": 2304,
"homeUrl": "",
"id": 2039,
"name": "USB Fusion",
"rotation": 0,
"thumbnailPath": "2039/2039.thumb.jpeg",
"totalPageNumber": 0,
"type": 2,
"url": "",
"width": 4096
}
],
"totalCount": 2
},
"message": "success",
"result": 0
}
Name | Description |
---|---|
result | Same as status. 0 indicates a successful data acquisition. Refer to API Status Codes to find specific description for other values. |
id | The source ID |
type | The source type 1: picture 2: video 6: music 0: preset source (capture + picture + video) 7: note background picture 10: GFX 11: scene background picture 12: scene background color 13: PDF file 14: web page |
name | The source name |
thumbnailPath | The relative path of source thumbnail, accessing through http (http://[deviceIP]/file/relativepath) |
filePath | The relative path of source file, accessing through http (http://[deviceIP]/file/relativepath) |
width | The source width, valid except for music |
height | The source height, valid except for music |
duration | The source duration, valid only for video and music |
artist | The artist, valid only for music |
totalPageNumber | The total page number, valid only for PDF |
url | The URL of web page, valid only for web page |
homeUrl | The URL of home page, valid only for web page |