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
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
//
//  LCOpenSDK_Param.h
//  LCOpenSDKDynamic
//
//  Created by 韩燕瑞 on 2020/7/9.
//  Copyright © 2020 Fizz. All rights reserved.
//
 
#import <Foundation/Foundation.h>
 
NS_ASSUME_NONNULL_BEGIN
 
/**
 流媒体模式
 DEFINITION_MODE_HG 主码流
 DEFINITION_MODE_SD 子码流
 */
typedef NS_ENUM(NSInteger, DEFINITION_MODE) {
    DEFINITION_MODE_HG = 0,
    DEFINITION_MODE_SD
};
 
/**
录像类型
RECORD_TYPE_ALL 全部
RECORD_TYPE_ALARM 报警
RECORD_TYPE_TIMING 定时
*/
typedef NS_ENUM(NSInteger, RECORD_TYPE) {
    RECORD_TYPE_ALL = 0,
    RECORD_TYPE_ALARM = 1000,
    RECORD_TYPE_TIMING = 2000
};
 
/**
 音频降噪等级
 LCOpenSDK_EnhanceMode_Close 关闭
 LCOpenSDK_EnhanceMode_Level1 降噪1级,最差
 LCOpenSDK_EnhanceMode_Level2 降噪2级
 LCOpenSDK_EnhanceMode_Level3 降噪3级
 LCOpenSDK_EnhanceMode_Level4 降噪4级
 LCOpenSDK_EnhanceMode_Level5 降噪5级,最优
*/
typedef NS_ENUM(NSInteger, LCOpenSDK_EnhanceMode) {
    LCOpenSDK_EnhanceMode_Close = -1,
    LCOpenSDK_EnhanceMode_Level1 = 0,
    LCOpenSDK_EnhanceMode_Level2 = 1,
    LCOpenSDK_EnhanceMode_Level3 = 2,
    LCOpenSDK_EnhanceMode_Level4 = 3,
    LCOpenSDK_EnhanceMode_Level5 = 4
};
 
@interface LCOpenSDK_Param : NSObject
 
@property (nonatomic, copy, nonnull) NSString  *accessToken; /** 管理员token/用户token */
@property (nonatomic, copy, nonnull) NSString  *deviceID; /** 设备ID */
@property (nonatomic) NSInteger                 channel; /** 通道 */
@property (nonatomic, copy, nullable) NSString *psk; /** 设备密钥 */
@property (nonatomic, copy, nullable) NSString *playToken; /** 播放token */
 
@end
 
/**
实时播放
*/
@interface LCOpenSDK_ParamReal : LCOpenSDK_Param
 
@property (nonatomic) DEFINITION_MODE  defiMode; /** 流媒体HD/SD模式 */
@property (nonatomic) BOOL             isOpt; /** 是否使用长链接优化 */
/// 码流分辨率
@property (nonatomic , assign) NSInteger imageSize;
 
@end
 
/**
本地文件按文件名
*/
@interface LCOpenSDK_ParamDeviceRecordFileName : LCOpenSDK_Param
 
@property (nonatomic, copy, nonnull) NSString  *fileName; /** 设备本地录像文件名 */
@property (nonatomic) double                    offsetTime; /** 偏移时间 */
@property (nonatomic) BOOL                      isOpt; /** 是否使用长链接优化 */
 
@end
 
/**
本地文件按时间
*/
@interface LCOpenSDK_ParamDeviceRecordUTCTime : LCOpenSDK_Param
 
@property (nonatomic) DEFINITION_MODE  defiMode; /** 流媒体HD/SD模式 */
@property (nonatomic) long             beginTime; /** 开始时间 */
@property (nonatomic) long             endTime; /** 结束时间 */
@property (nonatomic) BOOL             isOpt; /** 是否使用长链接优化 */
 
@end
 
/**
云录像
*/
@interface LCOpenSDK_ParamCloudRecord : LCOpenSDK_Param
 
@property (nonatomic, copy, nonnull) NSString *recordRegionID; /** 录像ID */
@property (nonatomic) double                   offsetTime; /** 偏移时间 */
@property (nonatomic) RECORD_TYPE              recordType; /** 录像类型 */
@property (nonatomic) NSInteger                timeOut; /** 超时时间 */
 
@end
 
/**
对讲(设备级对讲,通道为-1,通道级为对应通道号)
*/
@interface LCOpenSDK_ParamTalk : LCOpenSDK_Param
 
@property (nonatomic) BOOL             isOpt; /** 是否使用长链接优化 */
 
/// 请求类型,talk对讲,call呼叫,如果不传,默认为talk
@property (nonatomic, copy) NSString *talkType;
 
@end
 
NS_ASSUME_NONNULL_END