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)

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":"1018/1018.JPG",
                "height":720,
                "id":1018,
                "name":"IMG_2878",
                "thumbnailPath":"1018/1018.thumb.jpeg",
                "type":1,
                "width":1280
            },
            {
                "duration":1234,
                "filePath":"1041/1041.mp3",
                "height":0,
                "id":1041,
                "name":"IMG_2969",
                "thumbnailPath":"1041/1041.thumb.jpeg",
                "type":6,
                "width":0,
                "artist":"Magewell" 
            }
        ],
        "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
3: HDMI 1
4: HDMI 2
5: USB CAMERA
6: music
7: note background
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

results matching ""

    No results matching ""

    results matching ""

      No results matching ""