Interface description
Insert video, audio and picture records, connect with the collection station, and insert media file records into the database table through the retrieval interface to realize platform query of media files of the collection station
API address
https://v7.cmsv8.com/StandardApiAction_addMediaInformation.action?jsession=66d754dd7f41473dbd2&devIdno=013300000001&channel=2&mediaType=1&fileType=0&filePath=D:/xxx/xxx/013300000001/2024-12-01/H20190902-165958P3A1P0_1.mp4&fileOffset=0&fileSize=447888&fileSTime=2024-12-01 12:00:00&fileETime=2024-12-01 12:30:00&Label=60002F13BAD42F4877D04&svrIDNO=S1
Request parameters
| Parameter name |
Parameter type |
Must |
Example |
Parameter meaning |
| jsession |
string |
Yes |
66d754dd7f41473dbd2 |
Session number |
| devIdno |
string |
Yes |
013300000001 |
Device# |
| channel |
number |
is |
1 |
channel number |
| mediaType |
number |
is |
0 |
media type 0: picture, 1: audio and video, 2: audio, 3: video, 4: text, 5: other |
| fileType |
number |
Yes |
0 |
0- Normal 1- Alarm Triggered |
| filePath |
string |
Yes |
D:/xxx/xxx/013300000001/2024- 12- 01/H20190902- 165958P3A1P0_1.mp4 |
File Path |
| fileOffset |
number |
Yes |
0 |
File offset |
| fileSize |
number |
Yes |
447888 |
File size |
| fileSTime |
string |
Yes |
2024-12-01 12:00:00 |
File start time |
| fileETime |
string |
Yes |
2024-12-01 12:30:00 |
File End Time |
| Label |
string |
Yes |
60002F13BAD42F4877D04 |
Label |
| svrIDNO |
string |
Yes |
S1 |
Storage server number |
Return parameters
| Parameter Name | parameter Type | meaning of parameters |
|---|
| result | number | interface status code, 0 is normal, and other information is abnormal. For more information, see [Error Code Description](/helpCenter/doc/index.html?isStudy=1&pageType=3&docId=1321&type=1&lang=en "Error Code Description"). |
Return Example
{
"result": 0
}