Esempio n. 1
0
 private static extern bool CLIENT_QueryRecordFile(int lLoginID, int nChannelId, int nRecordFileType, ref NET_TIME tmStart,ref NET_TIME tmEnd, string pchCardid, ref NET_RECORDFILE_INFO nriFileinfo, int maxlen, ref  int filecount, int waittime, bool bTime);
Esempio n. 2
0
 /// <summary>
 /// Query the video file
 /// </summary>
 /// <param name="nChannelId">channel ID</param>
 /// <param name="nRecordFileType">Video like type:0.all video file;1.external alarms;2.The dynamic detection alarm;3.all alarms;4.Card number query;5.Select By Attributes;</param>
 /// <param name="tmStart">video start tion</param>
 /// <param name="tmEnd">video end time</param>
 /// <param name="pchCardid">card number,Only for card number query effective, other cases can be NULL</param>
 /// <param name="nriFileinfo">Return to video file information,An array is a net RECORDFILE INFO structure</param>
 /// <param name="maxlen">nriFileinfoThe maximum length of the buffer;(Unit of byte,suggest between 100-200*sizeof(NET_RECORDFILE_INFO)</param>
 /// <param name="filecount">Returns the number of file,Belongs to output parameters refer only to the biggest buffer full video record</param>        
 /// <param name="waittime">wait time</param>
 /// <param name="bTime">Whether by time(Invalid)</param>
 /// <returns>succeed to return TRUE,fail to return FALSE</returns>
 public bool QueryRecordFile(int nChannelId, int nRecordFileType, DateTime tmStart, DateTime tmEnd, string pchCardid, out NET_RECORDFILE_INFO nriFileinfo, int maxlen,out int filecount, int waittime, bool bTime)
 {
     bool returnValue = false;
     nriFileinfo = new NET_RECORDFILE_INFO();
     filecount = 0;
     if (tmStart.Date >= tmEnd.Date)
     {
         return returnValue;
     }
     NET_TIME netStartTime = ToNetTime(tmStart);
     NET_TIME netEndTime = ToNetTime(tmEnd);
     returnValue = CLIENT_QueryRecordFile(pClientInfo.ID, nChannelId, nRecordFileType, ref netStartTime, ref netEndTime, pchCardid, ref nriFileinfo, maxlen, ref  filecount, waittime, bTime);
     ThrowLastError();
     return returnValue;
 }
Esempio n. 3
0
 private static extern long CLIENT_PlayBackByRecordFile(int lLoginID,ref NET_RECORDFILE_INFO lpRecordFile, IntPtr hWnd, fDownLoadPosCallBack cbDownLoadPos, IntPtr dwUserData);
Esempio n. 4
0
 /// <summary>
 /// net palyback[note:After the user logs in a device, each channel at the same time can only play a video, can't play the same channel multiple records at the same time]
 /// </summary>
 /// <param name="lpRecordFile">Video file information, When press time play is only need to fill the start time and end time, and other items to fill 0</param>
 /// <param name="hWnd">Playback container name handle</param>
 /// <param name="cbDownLoadPos">Progress of the callback function</param>
 /// <param name="dwUserData">SYSNAME</param>
 /// <returns>Successful return to network playback ID, failure returns 0</returns>
 public long PlayBackByRecordFile(NET_RECORDFILE_INFO lpRecordFile, IntPtr hWnd, fDownLoadPosCallBack cbDownLoadPos, IntPtr dwUserData)
 {
     long returnValue;
     returnValue = CLIENT_PlayBackByRecordFile(pClientInfo.ID, ref lpRecordFile, hWnd, cbDownLoadPos, dwUserData);
     ThrowLastError();
     return returnValue;
 }