萤石云 iOSSDK,移植跨平台相关工程
JLChen
2021-08-06 edc0f0a0439f9e5a11593e21a4779fa6dbcbe49d
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
//
//  EZVideoTransformer.h
//  EZOpenSDK
//
//  Created by yuqian on 2019/6/17.
//  Copyright © 2019 Ezviz. All rights reserved.
//
 
#import <Foundation/Foundation.h>
 
NS_ASSUME_NONNULL_BEGIN
 
typedef enum {
    
    EZVideoTransformerTypeMP4,
    
} EZVideoTransformerType;
 
@interface EZVideoTransformer : NSObject
 
/// 本地PS文件转换为MP4文件
/// @param psPath ps文件路径
/// @param targetPath mp4文件路径
/// @param type 转换类型
/// @param key 设备验证码
/// @param succBlock 成功回调
/// @param processBlock 进度回调
/// @param failBlock 失败回调
+ (void)videoTransFormerPSPath:(NSString *)psPath
                        toPath:(NSString *)targetPath
                          type:(EZVideoTransformerType)type
                       withKey:(NSString *)key
                     succBlock:(void (^)())succBlock
                  processBlock:(void(^)(int rate))processBlock
                     failBlock:(void(^)(int errCode))failBlock;
 
@end
 
NS_ASSUME_NONNULL_END