JLChen
2021-05-18 a869383e163a18cdedcf587383c1eca043129754
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
//
//  Copyright © 2020 dahua. All rights reserved.
//
 
#import "LCDeviceVideoManager.h"
 
NS_ASSUME_NONNULL_BEGIN
 
 
 
@interface LCVideotapeDownloadInfo : NSObject
 
/// 下载唯一索引
@property (nonatomic) NSInteger index;
 
/// 云视频录像Id或本地视频路径
@property (strong, nonatomic) NSString *recordId;
 
/// 下载视频设备Id
@property (strong, nonatomic) NSString *deviceId;
 
/// 下载视频通道Id
@property (strong, nonatomic) NSString *channelId;
 
/// 下载状态
@property (nonatomic) LCVideotapeDownloadState donwloadStatus;
 
/// 本地保存地址
@property (strong, nonatomic) NSString *localPath;
 
/// 收到的数据长度
@property (nonatomic) NSInteger recieve;
 
@end
 
@interface LCDeviceVideotapePlayManager : LCDeviceVideoManager
 
+ (instancetype)manager;
 
/// 云录像信息
@property (strong, nonatomic) LCCloudVideotapeInfo *cloudVideotapeInfo;
 
/// 本地录像信息
@property (strong, nonatomic) LCLocalVideotapeInfo *localVideotapeInfo;
 
/// 当前播放偏移量
@property (strong,nonatomic) NSDate * currentPlayOffest;
 
/// 当前videotapeid
@property (strong,nonatomic) NSString * currentVideotapeId;
 
/// 下载队列
@property (strong, nonatomic) NSMutableDictionary<NSString *, LCVideotapeDownloadInfo *> *downloadQueue;
 
/**
 开始下载当前录像
 */
- (void)startDeviceDownload;
 
/**
 根据录像ID获取录像信息
 
 @return 录像信息
 */
- (LCVideotapeDownloadInfo *)currentDownloadInfo;
 
/**
 取消录像下载
 
 @param recordId 录像id
 */
- (void)cancleDownload:(NSString *)recordId;
 
@end
 
NS_ASSUME_NONNULL_END