TuSDKMediaEffectSync Protocol Reference
Conforms to | NSObject |
---|---|
Declared in | TuSDKMediaEffectSync.h |
timeline
required method
时间轴
@property (nonatomic, weak) id<TuSDKMediaEffectTimeline> timeline
Availability
v3.0.1
Declared In
TuSDKMediaEffectSync.h
delegate
required method
同步器委托
@property (nonatomic, weak) id<TuSDKMediaEffectSyncDelegate> delegate
Availability
v3.0.1
Declared In
TuSDKMediaEffectSync.h
– isSupportedMediaEffectType:
required method
验证当前同步器否支持该特效类型
- (BOOL)isSupportedMediaEffectType:(NSUInteger)effectType
Parameters
effectType |
特效类型 |
---|
Return Value
true/false
Availability
v3.0.1
Declared In
TuSDKMediaEffectSync.h
– syncMediaEffects:atTime:
required method
同步特效数据
- (void)syncMediaEffects:(id<TuSDKMediaEffectTimeline>)timeline atTime:(CMTime)time
Parameters
timeline |
当前时间轴 timeline |
---|---|
time |
当前时间 |
Availability
v3.0.1
Declared In
TuSDKMediaEffectSync.h
– syncWillAddMediaEffect:
required method
通知同步器将要添加特效
- (void)syncWillAddMediaEffect:(id<TuSDKMediaEffect>)effect
Parameters
effect |
将要添加的数据 |
---|
Availability
v3.0.1
Declared In
TuSDKMediaEffectSync.h
– syncDidAddMediaEffect:
required method
通知同步器特效数据已添加
- (void)syncDidAddMediaEffect:(id<TuSDKMediaEffect>)effect
Parameters
effect |
已添加的特效 |
---|
Availability
v3.0.1
Declared In
TuSDKMediaEffectSync.h
– syncDidRemoveMediaEffects:
required method
同步特效数据被移除事件
- (void)syncDidRemoveMediaEffects:(NSArray<id<TuSDKMediaEffect> > *)effects
Parameters
effects |
被移除的特效数据 |
---|
Availability
v3.0.1
Declared In
TuSDKMediaEffectSync.h
– reset
required method
重置并清空资源
- (void)reset
Availability
v3.0.1
Declared In
TuSDKMediaEffectSync.h