TuSDKMediaEffectTimeline Protocol Reference

Conforms to NSObject
Declared in TuSDKMediaEffectTimeline.h

Overview

时间特效时间轴. 对特效数据进行管理

  sync required method

特效同步器

@property (nonatomic) id<TuSDKMediaEffectSync> sync

Availability

3.0.1

Declared In

TuSDKMediaEffectTimeline.h

– isSupportedMediaEffectType: required method

验证当前时间轴是否支持该特效类型

- (BOOL)isSupportedMediaEffectType:(NSUInteger)mediaEffectType

Parameters

mediaEffectType

特效类型

Return Value

true/false

Availability

v3.0.1

Declared In

TuSDKMediaEffectTimeline.h

– addMediaEffect: required method

添加一个多媒体特效。该方法不会自动设置触发时间. 如果已有特效和该特效不能同时共存,已有旧特效将被移除.

- (BOOL)addMediaEffect:(__kindof id<TuSDKMediaEffect>)mediaEffect

Parameters

mediaEffect

特效数据

Availability

v3.0.1

Declared In

TuSDKMediaEffectTimeline.h

– removeMediaEffect: required method

移除特效数据

- (void)removeMediaEffect:(__kindof id<TuSDKMediaEffect>)mediaEffect

Parameters

mediaEffect

特效数据

Availability

v3.0.1

Declared In

TuSDKMediaEffectTimeline.h

– removeMediaEffectsWithType: required method

移除指定类型的特效信息

- (void)removeMediaEffectsWithType:(NSUInteger)effectType

Parameters

effectType

特效类型

Availability

v3.0.1

Declared In

TuSDKMediaEffectTimeline.h

– removeAllMediaEffect required method

移除所有特效数据

- (void)removeAllMediaEffect

Availability

v3.0.1

Declared In

TuSDKMediaEffectTimeline.h

– mediaEffectsWithType: required method

获取指定类型的特效信息

- (NSArray<__kindofid<TuSDKMediaEffect> > *)mediaEffectsWithType:(NSUInteger)effectType

Parameters

effectType

特效数据类型

Return Value

特效列表

Availability

v3.0.1

Declared In

TuSDKMediaEffectTimeline.h

– mediaEffects required method

获取所有特效

- (NSArray<__kindofid<TuSDKMediaEffect> > *)mediaEffects

Return Value

NSArray<idTuSDKMediaEffect *

Availability

v3.0.1

Declared In

TuSDKMediaEffectTimeline.h

– hasEffectAtTime:forEffectType: required method

验证在 time 处是否存在指定类型的特效

- (BOOL)hasEffectAtTime:(CMTime)time forEffectType:(NSUInteger)effectType

Parameters

time

特效时间

effectType

特效类型

Return Value

true/false

Declared In

TuSDKMediaEffectTimeline.h

– syncTime: required method

播放指定位置的特效

- (void)syncTime:(CMTime)time

Parameters

time

帧时间

Availability

v3.0.1

Declared In

TuSDKMediaEffectTimeline.h

– destory required method

销毁特效

- (void)destory

Availability

v2.2.0

Declared In

TuSDKMediaEffectTimeline.h