JLChen
2021-11-04 1443556e9ccb1a19ed8e6710c16c8adc4d4f4fb3
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
//
//  Copyright © 2020 dahua. All rights reserved.
//
 
#ifndef LCLivePreviewDefine_h
#define LCLivePreviewDefine_h
 
typedef enum : NSUInteger {
    LCLiveDefinitionSD,
    LCLiveDefinitionHD
} LCLiveDefinition;
 
 
//下载状态(demoApp)
typedef enum : NSInteger {
    LCVideotapeDownloadStatusFail =  0,      // 下载失败
    LCVideotapeDownloadStatusBegin =  1,     // 开始下载
    LCVideotapeDownloadStatusEnd =  2,       // 正常下载结束
    LCVideotapeDownloadStatusCancle = 3,      //下载取消(仅下载云录像时有效)
    LCVideotapeDownloadStatusSuspend =  4,    // 下载暂停(仅下载云录像时有效)
    LCVideotapeDownloadStatusTimeout =  5,   // 下载超时(仅下载云录像时有效)
    LCVideotapeDownloadStatusKeyError =  6,   // 解密秘钥错误
    LCVideotapeDownloadStatusPartDownload =  7   // 片段下载成功
} LCVideotapeDownloadState;
 
typedef NS_ENUM (NSInteger, HLSResultCode) {
    HLS_DOWNLOAD_FAILD = 0, // 下载失败
    HLS_DOWNLOAD_BEGIN = 1,     // 开始下载
    HLS_DOWNLOAD_END = 2,       // 下载结束
    HLS_SEEK_SUCCESS = 3,       // 定位成功
    HLS_SEEK_FAILD = 4,         // 定位失败
    HLS_ABORT_DONE = 5,         // 下载取消
    HLS_RESUME_DONE = 6,        // 下载暂停
    HLS_DOWNLOAD_TIMEOUT = 7,   // 下载超时
    HLS_KEY_ERROR = 11  // 密钥错误
};
 
#endif /* LCLivePreviewDefine_h */