A. Preparations of Development
1 . Install and run the latest IVMS Server and make sure the Media Server running.
2 . How get the IP address and port of Media Server.
Kindly type the search command as below.
So the IP address and ports of Media Server as above is192.168.168.4 6604.
3 . Configuration of Media Server.
[HTTPService]
WebRootDir=Web
HttpLoginRequired=1
VideoCacheDir=C:\\gIVMSH5Cache
KeepDay=5
B. get the video recording of flv format by SDK
http://server:port//PlaybackFlv.do?DevIDNO={strDeviceIDNO}&Channel={nChannel}&Date={yyyy-mm-dd}&FileBegin={nFileBegin}&BeginTime={nBeginSecond}&EndTime={nEndSecond}&AlarmInfo={AlarmInfo}&FileName={FileName}&Location={nLocation}&Attribute={nAttribute}&jSession={session}&callback={jsCallback}&uSession={strUserSession}&JT={isJT}
http://192.168.168.65:6604/PlaybackFlv.do?DevIDNO=1891111&Channel=0&Date=2019-01-03&FileBegin=0&Begintime=0&Endtime=900&AlarmInfo=0&FileName=/sd1/2019-01-03/H20190103-000000PAN1P0.avi&FileLen=16634240&FileOffset=0&FileType=0&Location=1&ServerID=0&Attribute=2
Success:
Return value
If failed , format: json, status= 1, message means reason
For example
{“status” : “1”,”message” : “Device is Offline” }
Contact Us
Questions or comments? Please fill out the form below, send a quick message, or call us. We love to hear from you!