Skip to content

Get the device media list

Query device media list

API info

Url: /web_api/v1/media/get_media_list

Method: GET

Content-Type:x-www-form-urlencoded

Request parameter

fieldtyperequireddesc
vehicleNostringYesPlate No.
channelNointegerNoChannel number
startTimeintegerYesStart time,UTC timestamp
endTimeintegerYesEnd time,UTC timestamp
alarmFlagintegerNoAlarm sign,0: All
mediaTypeintegerNoMedia type 0: Audio and video,1: audio,2: video,3: video or audio video
bitStreamTypeintegerNoType of stream 0: all stream,1: HD,2: SD
storageTypeintegerNoStorage type 0: all storage 1: primary storage,2 :backup Storage

Response Data (type:(object))

fieldtypedesc
channelNointegerChannel number
startTimeintegerStart time,UTC timestamp
endTimeintegerEnd time,UTC timestamp
alarmFlagintegerAlarm sign, refer to JT808-JT1078 alarm definition
mediaTypeintegerMedia type 0: audio,1: audio,2: video
bitStreamTypeintegerStream type 1: HD,2: SD
storageTypeintegerStorage type 1: primary storage,2 backup Storage
fileSizeintegerFile size ,unit:bytes

Example

Request example

url
http://localhost:8080/web_api/v1/media/get_media_list?vehicleNo=13000000005&channelNo=0&startTime=1699027200&endTime=1699113599&mediaType=3&bitStreamType=0&storageType=0&_t=1699063623778
http://localhost:8080/web_api/v1/media/get_media_list?vehicleNo=13000000005&channelNo=0&startTime=1699027200&endTime=1699113599&mediaType=3&bitStreamType=0&storageType=0&_t=1699063623778

Response example

json
{
    "hdr":{
        "code":200
    },
    "data":[
        {
            "channelNo":1,
            "startTime":1698801544,
            "endTime":1698801936,
            "alarmFlag":0,
            "mediaType":0,
            "bitStreamType":1,
            "storageType":1,
            "fileSize":25088000
        }
    ]
}
{
    "hdr":{
        "code":200
    },
    "data":[
        {
            "channelNo":1,
            "startTime":1698801544,
            "endTime":1698801936,
            "alarmFlag":0,
            "mediaType":0,
            "bitStreamType":1,
            "storageType":1,
            "fileSize":25088000
        }
    ]
}