PLSRangeMedia.h
884 Bytes
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
//
// PLSRangeMedia.h
// PLShortVideoKitDemo
//
// Created by hxiongan on 2018/2/2.
// Copyright © 2018年 Pili Engineering, Qiniu Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <AVFoundation/AVFoundation.h>
@interface PLSRangeMedia : NSObject
/**
@brief 选取的开始时间
@since v1.10.0
*/
@property (nonatomic, assign) CMTime startTime;
/**
@brief 选取的结束时间
@since v1.10.0
*/
@property (nonatomic, assign) CMTime endTime;
/**
@brief 视频可以是AVAseet格式,也可以用url,二选一
@since v1.10.0
*/
@property (nonatomic, strong) AVAsset *asset;
/**
@brief 视频的url,也可以用AVAsset,二选一
@since v1.10.0
*/
@property (nonatomic, strong) NSURL *url;
/**
@brief 是不是转场视频
@since v1.10.0
*/
@property (nonatomic, assign) BOOL isTransition;
@end