萤石云 iOSSDK,移植跨平台相关工程
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
//
//  EZRecordCoverFetcherManager.h
//  EZPlay
//
//  Created by JuneCheng on 2022/12/19.
//
 
#import <Foundation/Foundation.h>
@class EZDeviceRecordFile;
 
// Fetcher初始化代理
@protocol RecordCoverFetcherDelegate<NSObject>
 
@optional
/**
 * SD卡录像封面提取器初始化成功回调
 */
- (void)onFetcherInitSuccess;
 
/**
 * SD卡录像封面提取器初始化失败回调
 */
- (void)onFetcherInitFailed;
 
/**
 * SD卡录像封面提取封面成功回调
 */
- (void)onGetCoverSuccess:(int)seq data:(NSData *_Nonnull)data;
 
/**
 * SD卡录像封面提取封面失败回调
 */
- (void)onGetCoverFailed:(int)errorCode;
 
@end
 
NS_ASSUME_NONNULL_BEGIN
 
@interface EZRecordCoverFetcherManager : NSObject
 
 
@property (nonatomic, weak) id <RecordCoverFetcherDelegate> fetcherDelegate;
 
+ (instancetype)sharedInstance;
 
/**
 * 与设备建立链接
 *
 * @param   deviceSerial 设备序列号
 * @param   cameraNo 设备通道号
 */
- (void)initFetcherWithDeviceSerial:(NSString *)deviceSerial cameraNo:(NSInteger)cameraNo;
 
 
/**
 * 断开与设备的链接
 */
- (void)stopFetcher;
 
 
/**
 * 跟设备请求SD卡录像封面
 */
- (void)requestRecordCover:(NSArray<EZDeviceRecordFile *> *)recordFiles;
 
 
@end
 
NS_ASSUME_NONNULL_END