TuSDKMediaMovieFilmEditor Class Reference
Inherits from | NSObject |
---|---|
Conforms to | TuSDKMediaMovieEditor |
Declared in | TuSDKMediaMovieFilmEditor.h |
Other Methods
– initWithPreview:assets:options:
初始化 TuSDKMediaMontageMovieEditor
- (instancetype _Nonnull)initWithPreview:(UIView *_Nonnull)preView assets:(NSArray<AVAsset*> *_Nonnull)inputAssets options:(TuSDKMediaMovieFilmEditorOptions *_Nonnull)options
Parameters
preView |
预览视图 |
---|---|
inputAssets |
输入视频源 |
options |
指定编辑器初始化配置 |
Return Value
TuSDKMediaMontageMovieEditor
Availability
v3.0.1
Declared In
TuSDKMediaMovieFilmEditor.h
inputAssets
输入的资产列表
@property (nonatomic, readonly) NSArray<AVAsset*> *inputAssets
Availability
v3.0.1
Declared In
TuSDKMediaMovieFilmEditor.h
status
状态信息
@property (assign, readonly) lsqMovieEditorStatus status
Availability
v3.0.1
Declared In
TuSDKMediaMovieFilmEditor.h
exportDuration
指定导出时长 默认:15s
@property (nonatomic) CMTime exportDuration
Availability
v3.0.1
Declared In
TuSDKMediaMovieFilmEditor.h
outputRatio
指定输出画幅比例,默认:0 SDK自动计算最佳输出比例
@property (nonatomic) CGFloat outputRatio
Availability
v3.0.1
Declared In
TuSDKMediaMovieFilmEditor.h
playerDelegate
视频播放器事件委托
@property (nonatomic, weak) id<TuSDKMediaMovieFilmEditorPlayerDelegate> _Nullable playerDelegate
Availability
v3.0.1
Declared In
TuSDKMediaMovieFilmEditor.h
saveDelegate
视频保存事件委托
@property (nonatomic, weak) id<TuSDKMediaMovieFilmEditorSaveDelegate> _Nullable saveDelegate
Availability
v3.0.1
Declared In
TuSDKMediaMovieFilmEditor.h
– updatePreViewFrame:
更新预览View
- (void)updatePreViewFrame:(CGRect)frame
Parameters
frame |
设定的frame |
---|
Availability
v3.0.1
Declared In
TuSDKMediaMovieFilmEditor.h
MediaEffect Methods
– addMediaPacketEffect:
添加特效
- (BOOL)addMediaPacketEffect:(id<TuSDKMediaPacketEffect> _Nonnull)mediaEffect
Parameters
mediaEffect |
特效信息 |
---|
Return Value
true/false
Availability
v3.0.1
Declared In
TuSDKMediaMovieFilmEditor.h
– removeMediaPacketEffect:
移除特效
- (void)removeMediaPacketEffect:(id<TuSDKMediaPacketEffect> _Nonnull)mediaEffect
Parameters
mediaEffect |
特效信息 |
---|
Availability
v3.0.1
Declared In
TuSDKMediaMovieFilmEditor.h
– removeAllMediaPacketEffect
移除特效
- (void)removeAllMediaPacketEffect
Availability
v3.0.1
Declared In
TuSDKMediaMovieFilmEditor.h
Timeline Methods
– inputDuration
输入的资产文件总总时长
- (CMTime)inputDuration
Availability
v3.0.1
Declared In
TuSDKMediaMovieFilmEditor.h
– outputDuraiton
应用特效后的输出总时长
- (CMTime)outputDuraiton
Availability
v3.0.1
Declared In
TuSDKMediaMovieFilmEditor.h
– outputTime
当前已经播放时长
- (CMTime)outputTime
Return Value
CMTime
Availability
v3.0.1
Declared In
TuSDKMediaMovieFilmEditor.h