摄像头相册(Camera album)

设备SD卡中,保存摄像头中的 视频文件报警图片文件。(In the SD card of the device, save the video files and alarm picture files in the camera.)
  • 视频文件(Video file)

视频文件,即摄像头录制的视频文件列表,包括:连续录像报警录像定时录像。(Video files, that is, a list of video files recorded by the camera, including: continuous recording, alarm recording, timed recording.)

从app缓存中拿到 KHJDeviceManager 类的对象:(Get objects of class KHJDeviceManager from the app cache:)

TS 即将 YYYY_MM_dd 格式的字符串转成的时间戳。(TS is a timestamp that converts a string in the format YYYY_MM_dd.)

withStart 即 是否从第一页开始查询。(withStart means whether to start query from the first page.)

KHJBaseDevice *dDevice = [[KHJAllBaseManager sharedBaseManager] searchForkey:Uid];
if (bDevice) {
    [dDevice.mDeviceManager listVideoFileStart:TS withStart:true returnBlock:^(BOOL isContinue, NSMutableArray *mArray) {

    }];
}

isContinue 即有更多的数据,可做上拉刷新的判断参数。(isContinue means that there is more data, which can be used as a judgment parameter for pull-up refresh.)

mArray 即 视频列表数据。(mArray is the video list data.)

或者(or)
KHJDeviceManager *manager = [[KHJDeviceManager alloc] init];
[manager createKHJCameraBase:Uid];
if (manager) {
    [manager listVideoFileStart:TS withStart:true returnBlock:^(BOOL isContinue, NSMutableArray *mArray) {

    }];
}
  • 图片文件(Picture file)

图片文件,即摄像头的 报警图片。(Picture file, that is, the "alarm picture" of the camera.)

视频文件与图片文件获取方法类似,使用 listJpegFileStart 替换 listVideoFileStart 即可,参数相同且换回数据相同。(The method of obtaining video files is similar to that of image files. Use listJpegFileStart to replace listVideoFileStart . The parameters are the same and the data returned are the same.)