get-sources-list
Use the interface to get the server source list.
Request Mode
POST http://ip/mwapi/get-sources-list
Parameter | Description |
---|---|
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 |
Response Body
JSON structure is as follows:
{
"info":{
"pageIndex":0,
"sourceList":[
{
"duration":0,
"filePath":"4/4.jpeg",
"height":1461,
"id":4,
"name":"default picture",
"thumbnailPath":"4/4.thumb.jpeg",
"type":1,
"width":2224
},
{
"duration":0,
"filePath":"100/100.jpeg",
"height":1080,
"id":100,
"name":"ubuntu",
"thumbnailPath":"100/100.thumb.jpeg",
"type":1,
"width":1920
},
{
"duration":120000,
"filePath":"101/101.mp4",
"height":1080,
"id":101,
"name":"1080p-red",
"thumbnailPath":"101/101.thumb.jpeg",
"type":2,
"width":1920
},
{
"duration": 0,
"filePath": "2004/2004.pdf",
"height": 1080,
"homeUrl": "",
"id": 2004,
"name": "USB Fusion User Manual",
"rotation": 0,
"thumbnailPath": "2004/2004.thumb.jpeg",
"totalPageNumber": 22,
"type": 13,
"url": "",
"width": 1920
},
{
"duration": 0,
"filePath": "",
"height": 1080,
"homeUrl": "www.magewell.com",
"id": 2006,
"name": "https://www.magewell.com/",
"rotation": 0,
"thumbnailPath": "2006/2006.thumb.jpeg",
"totalPageNumber": 0,
"type": 14,
"url": "https://www.magewell.com/",
"width": 1920
}
],
"totalCount":11
},
"status":0
}
Name | Description |
---|---|
status | 0 indicates that the request was accepted successfully. 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 |