|
| 1 | +# PLShortVideoKit 3.1.1 to 3.2.0 API Differences |
| 2 | + |
| 3 | +## General Headers |
| 4 | + |
| 5 | +`PLSTypeDefines.h` |
| 6 | + |
| 7 | +- *Added* |
| 8 | + |
| 9 | +```objc |
| 10 | +typedef enum { |
| 11 | + PLSTransitionTypeFade = 0, // 淡入淡出 |
| 12 | + PLSTransitionTypeNone = 1, // 无 |
| 13 | + |
| 14 | + PLSTransitionTypeFadeBlack = 2, // 闪黑 v3.2.0 |
| 15 | + PLSTransitionTypeFadeWhite = 3, // 闪白 v3.2.0 |
| 16 | + PLSTransitionTypeCircularCrop = 4, // 圆形 v3.2.0 |
| 17 | + |
| 18 | + PLSTransitionTypeSliderUp = 5, // 从上飞入 v3.2.0 |
| 19 | + PLSTransitionTypeSliderDown = 6, // 从下飞入 v3.2.0 |
| 20 | + PLSTransitionTypeSliderLeft = 7, // 从左飞入 v3.2.0 |
| 21 | + PLSTransitionTypeSliderRight = 8, // 从右飞入 v3.2.0 |
| 22 | + |
| 23 | + PLSTransitionTypeWipeUp = 9, // 从上擦除 v3.2.0 |
| 24 | + PLSTransitionTypeWipeDown = 10, // 从下擦除 v3.2.0 |
| 25 | + PLSTransitionTypeWipeLeft = 11, // 从左擦除 v3.2.0 |
| 26 | + PLSTransitionTypeWipeRight = 12, // 从右擦除 v3.2.0 |
| 27 | + |
| 28 | +} PLSTransitionType; |
| 29 | +``` |
| 30 | + |
| 31 | +`PLSAVAssetExportSession.h` |
| 32 | + |
| 33 | +- *Added* |
| 34 | + |
| 35 | +```objc |
| 36 | +@property(nonatomic, assign) int gopSize; |
| 37 | +``` |
| 38 | + |
| 39 | +`PLSUploaderResponInfo.h` |
| 40 | + |
| 41 | +- *Added* |
| 42 | + |
| 43 | +```objc |
| 44 | +@property (nonatomic, copy, readonly) NSString * _Nullable xClientId; |
| 45 | + |
| 46 | +- (instancetype _Nullable)initWithStatusCode:(int)statusCode |
| 47 | + reqId:(NSString *_Nullable)reqId |
| 48 | + xClientId:(NSString *_Nullable)xClientId |
| 49 | + xlog:(NSString *_Nullable)xlog |
| 50 | + xvia:(NSString *_Nullable)xvia |
| 51 | + error:(NSError *_Nullable)error |
| 52 | + host:(NSString *_Nullable)host |
| 53 | + duration:(double)duration |
| 54 | + id:(NSString *_Nullable)id |
| 55 | + timeStamp:(UInt64)timeStamp |
| 56 | + canceled:(BOOL)canceled |
| 57 | + ok:(BOOL)ok |
| 58 | + broken:(BOOL)broken |
| 59 | + notQiniu:(BOOL)notQiniu; |
| 60 | +``` |
| 61 | + |
| 62 | + |
| 63 | +- *Deprecated* |
| 64 | + |
| 65 | +```objc |
| 66 | +@property (nonatomic, readonly) NSString * _Nullable serverIp- *Deprecated* |
| 67 | + |
| 68 | +- (instancetype _Nullable)initWithStatusCode:(int)statusCode |
| 69 | + reqId:(NSString *_Nullable)reqId |
| 70 | + xlog:(NSString *_Nullable)xlog |
| 71 | + xvia:(NSString *_Nullable)xvia |
| 72 | + error:(NSError *_Nullable)error |
| 73 | + host:(NSString *_Nullable)host |
| 74 | + duration:(double)duration |
| 75 | + serverIp:(NSString *_Nullable)serverIp |
| 76 | + id:(NSString *_Nullable)id |
| 77 | + timeStamp:(UInt64)timeStamp |
| 78 | + canceled:(BOOL)canceled |
| 79 | + ok:(BOOL)ok |
| 80 | + broken:(BOOL)broken |
| 81 | + notQiniu:(BOOL)notQiniu; |
| 82 | +``` |
| 83 | + |
| 84 | +`PLSImageToMovieComposer.h` |
| 85 | + |
| 86 | +- *Added* |
| 87 | + |
| 88 | +```objc |
| 89 | +- (void)previewVideoByPlayerItem; |
| 90 | + |
| 91 | +- (void)updatePreviewTransitionMedias:(NSInteger)index transitionType:(PLSTransitionType)transitionType; |
| 92 | +``` |
| 93 | + |
| 94 | +`PLSImageVideoComposer.h` |
| 95 | + |
| 96 | +- *Added* |
| 97 | + |
| 98 | +```objc |
| 99 | +@property (copy, nonatomic) void(^ _Nullable previewBlock)(AVPlayerItem* playerItem); |
| 100 | + |
| 101 | +@property (copy, nonatomic) void(^ _Nullable previewFailureBlock)(NSError* error); |
| 102 | + |
| 103 | +@property (assign, nonatomic) BOOL useGobalTransition; |
| 104 | + |
| 105 | +- (void)previewVideoByPlayerItem; |
| 106 | + |
| 107 | +- (void)updatePreviewTransitionMedias:(NSInteger)index transitionType:(PLSTransitionType)transitionType; |
| 108 | +``` |
0 commit comments