TuSDKMovieEditorBase Class Reference
Inherits from | NSObject |
---|---|
Conforms to | TuSDKMediaMovieEditor TuSDKMediaMovieEditorSaverDelegate TuSDKMediaTimelineAssetMoviePlayerDelegate TuSDKMediaVideoRender |
Declared in | TuSDKMovieEditorBase.h |
Other Methods
– initWithPreview:options:
初始化
- (instancetype _Nonnull)initWithPreview:(UIView *_Nonnull)holderView options:(TuSDKMovieEditorOptions *_Nonnull)options
Parameters
holderView |
预览容器 |
---|
Return Value
对象实例
Declared In
TuSDKMovieEditorBase.h
options
视频编辑配置项
@property (nonatomic, readonly) TuSDKMovieEditorOptions *options
Availability
v3.2.1
Declared In
TuSDKMovieEditorBase.h
holderView
预览视图容器
@property (nonatomic, readonly) UIView *holderView
Availability
v3.2.1
Declared In
TuSDKMovieEditorBase.h
inputAsset
输入的资产信息
@property (nonatomic, readonly) AVAsset *inputAsset
Availability
v1.0.0
Declared In
TuSDKMovieEditorBase.h
inputAssetInfo
获取视频信息,视频加载完成后可用
@property (nonatomic, readonly) TuSDKMediaAssetInfo *inputAssetInfo
Availability
v3.0
Declared In
TuSDKMovieEditorBase.h
status
@property (assign, readonly) lsqMovieEditorStatus status
Availability
v1.0.0
Declared In
TuSDKMovieEditorBase.h
cutTimeRange
裁剪范围 (开始时间~持续时间)
@property (nonatomic, strong, readonly) TuSDKTimeRange *cutTimeRange
Availability
v3.0.1
Declared In
TuSDKMovieEditorBase.h
videoSoundVolume
预览时视频原音音量, 默认 1.0 注:仅在 option 中的 enableSound 为 YES 时有效
@property (nonatomic, assign) CGFloat videoSoundVolume
Availability
v1.0.0
Declared In
TuSDKMovieEditorBase.h
loadDelegate
视频加载事件委托
@property (nonatomic, weak) id<TuSDKMovieEditorLoadDelegate> _Nullable loadDelegate
Availability
v3.0
Declared In
TuSDKMovieEditorBase.h
playerDelegate
视频播放器事件委托
@property (nonatomic, weak) id<TuSDKMovieEditorPlayerDelegate> _Nullable playerDelegate
Availability
v3.0
Declared In
TuSDKMovieEditorBase.h
saveDelegate
视频保存事件委托
@property (nonatomic, weak) id<TuSDKMovieEditorSaveDelegate> _Nullable saveDelegate
Availability
v3.0
Declared In
TuSDKMovieEditorBase.h
– notifyMovieEditorStatus:
通知视频编辑器状态
- (void)notifyMovieEditorStatus:(lsqMovieEditorStatus)status
Parameters
status |
状态信息 |
---|
Declared In
TuSDKMovieEditorBase.h
– updatePreViewFrame:
更新预览View
- (void)updatePreViewFrame:(CGRect)frame
Parameters
frame |
设定的frame |
---|
Availability
2.2.0
Declared In
TuSDKMovieEditorBase.h
– updateOutputRatio:
更新视频输出比例
- (void)updateOutputRatio:(CGFloat)outputRatio
Parameters
outputRatio |
输出比例 |
---|
Availability
v3.2.1
Declared In
TuSDKMovieEditorBase.h
TimeEffect Methods
– addMediaTimeEffect:
添加时间特效. 目前所有时间特效均互斥同时只能添加一个
- (void)addMediaTimeEffect:(id<TuSDKMediaTimeEffect> _Nonnull)timeEffect
Parameters
timeEffect |
时间特效 TuSDKMediaSpeedTimeEffect / TuSDKMediaRepeatTimeEffect / TuSDKMediaReverseTimeEffect |
---|
Availability
v3.0
Declared In
TuSDKMovieEditorBase.h
– mediaTimeEffects
获取设置的时间特效信息
- (NSArray<id<TuSDKMediaTimeEffect> > *_Nonnull)mediaTimeEffects
Return Value
已添加时间特效列表
Availability
v3.0.1
Declared In
TuSDKMovieEditorBase.h
– removeAllMediaTimeEffect
清除所有时间特效
- (void)removeAllMediaTimeEffect
Availability
v3.0
Declared In
TuSDKMovieEditorBase.h
ParticleEffect Methods
– updateParticleEmitPosition:
更新粒子特效的发射器位置
- (void)updateParticleEmitPosition:(CGPoint)point
Parameters
point |
粒子发射器位置 左上角为(0,0) 右下角为(1,1) |
---|
Availability
v2.0
Declared In
TuSDKMovieEditorBase.h
– updateParticleEmitSize:
更新 下一次添加的 粒子特效材质大小 0~1 注:对当前正在添加或已添加的粒子不生效
- (void)updateParticleEmitSize:(CGFloat)size
Parameters
size |
粒子特效材质大小 |
---|
Availability
v2.0
Declared In
TuSDKMovieEditorBase.h
– updateParticleEmitColor:
更新 下一次添加的 粒子特效颜色 注:对当前正在添加或已添加的粒子不生效
- (void)updateParticleEmitColor:(UIColor *_Nonnull)color
Parameters
color |
粒子特效颜色 |
---|
Availability
v2.0
Declared In
TuSDKMovieEditorBase.h
Timeline Methods
– seekToInputTime:
将当前回放时间设置为指定的输入时间
- (void)seekToInputTime:(CMTime)inputTime
Parameters
inputTime |
输入时间 @sicne v3.0.1 |
---|
Declared In
TuSDKMovieEditorBase.h
– inputDuration
媒体的真实时长
- (CMTime)inputDuration
Availability
v3.0
Declared In
TuSDKMovieEditorBase.h
– outputDuraiton
应用特效后的输出总时长
- (CMTime)outputDuraiton
Availability
v3.0
Declared In
TuSDKMovieEditorBase.h
– outputTimeAtTimeline
当前已经播放时长
- (CMTime)outputTimeAtTimeline
Return Value
CMTime
Availability
v3.0
Declared In
TuSDKMovieEditorBase.h
– outputTimeAtSlice
当前正在播放的切片时间
- (CMTime)outputTimeAtSlice
Return Value
CMTime
Availability
v3.0
Declared In
TuSDKMovieEditorBase.h
MediaEffectManager Methods
– addMediaEffect:
添加一个多媒体特效。该方法不会自动设置触发时间.
- (BOOL)addMediaEffect:(id<TuSDKMediaEffect> _Nonnull)mediaEffect
Parameters
mediaEffect |
特效数据 |
---|
Availability
v2.0
Discussion
如果已有特效和该特效不能同时共存,已有旧特效将被移除.
Declared In
TuSDKMovieEditorBase.h
– removeMediaEffect:
移除特效数据
- (void)removeMediaEffect:(id<TuSDKMediaEffect> _Nonnull)mediaEffect
Parameters
mediaEffect |
TuSDKMediaEffectData |
---|
Availability
v2.1
Declared In
TuSDKMovieEditorBase.h
– removeMediaEffectsWithType:
移除指定类型的特效信息
- (void)removeMediaEffectsWithType:(NSUInteger)effectType
Parameters
effectType |
特效类型 |
---|
Availability
v2.1
Declared In
TuSDKMovieEditorBase.h
– removeAllMediaEffect
v2.0
- (void)removeAllMediaEffect
Availability
v2.0
Discussion
移除所有特效
Declared In
TuSDKMovieEditorBase.h
– applyMediaEffect:
开始编辑并预览特效.
- (void)applyMediaEffect:(id<TuSDKMediaEffect> _Nonnull)mediaEffect
Parameters
mediaEffect |
TuSDKMediaEffectData |
---|
Availability
v2.1
Discussion
当调用该方法时SDK内部将会设置特效开始时间为当前视频时间。
Declared In
TuSDKMovieEditorBase.h
– unApplyMediaEffect:
停止编辑特效.
- (void)unApplyMediaEffect:(id<TuSDKMediaEffect> _Nonnull)mediaEffect
Parameters
mediaEffect |
TuSDKMediaEffectData |
---|
Availability
v2.1
Discussion
当调用该方法时SDK内部将会设置特效结束时间为当前视频时间。
Declared In
TuSDKMovieEditorBase.h
– mediaEffectsWithType:
获取指定类型的特效信息
- (NSArray<id<TuSDKMediaEffect> > *_Nonnull)mediaEffectsWithType:(NSUInteger)effectType
Parameters
effectType |
特效数据类型 |
---|
Return Value
特效列表
Availability
v2.1
Declared In
TuSDKMovieEditorBase.h
– allMediaEffects
获取添加的所有特效
- (NSArray<id<TuSDKMediaEffect> > *_Nonnull)allMediaEffects
Return Value
特效列表
Availability
v3.4.0
Declared In
TuSDKMovieEditorBase.h