PLSReverserEffect.h
1.45 KB
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
//
// PLSReverserEffect.h
// PLShortVideoKit
//
// Created by 何昊宇 on 2017/9/11.
// Copyright © 2017年 Pili Engineering, Qiniu Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <AVFoundation/AVFoundation.h>
/**
@brief 时光倒流处理核心类
@since v1.5.0
*/
@interface PLSReverserEffect : NSObject
/**
@abstract 时光倒流完成的 Block
@since v1.5.0
*/
@property (copy, nonatomic) void(^completionBlock)(NSURL *url);
/**
@abstract 时光倒流失败的 Block
@since v1.5.0
*/
@property (copy, nonatomic) void(^failureBlock)(NSError *error);
/**
@abstract 时光倒流进度的 Block,可在该 Block 中刷新倒序进度条 UI
@since v1.5.0
*/
@property (copy, nonatomic) void(^processingBlock)(float progress);
/**
@brief PLSReverserEffect 处于执行时光倒流状态时为 YES
@since v1.5.0
*/
@property (readonly, nonatomic) BOOL isReversing;
/**
@brief audioRemoved 是否去掉音频,默认为 YES,即去掉音频。当设置为 NO 时,维持原音频,即不对音频进行倒序处理。
@since v1.14.0
*/
@property (assign, nonatomic, getter=isAudioRemoved) BOOL audioRemoved;
/**
@brief 初始化
@since v1.5.0
*/
- (instancetype)initWithAsset:(AVAsset *)asset;
/**
@abstract 执行时光倒流
@since v1.5.0
*/
- (void)startReversing;
/**
@abstract 取消时光倒流
@since v1.5.0
*/
- (void)cancelReversing;
@end