TuSDKMediaMovieCompositionComposer Class Reference

Inherits from NSObject
Declared in TuSDKMediaMovieCompositionComposer.h

Overview

特效管理

Other Methods

– initWithVideoComposition:audioComposition:

初始化合成器

- (instancetype)initWithVideoComposition:(id<TuSDKMediaVideoComposition> __nullable)videoComposition audioComposition:(id<TuSDKMediaAudioComposition> __nullable)audioComposition

Parameters

videoComposition

视频合成物

audioComposition

音频合成物

Return Value

TuSDKMediaCompositionComposer

Availability

v3.4.1

Declared In

TuSDKMediaMovieCompositionComposer.h

– initWithVideoComposition:audioComposition:composorSettings:

初始化合成器

- (instancetype)initWithVideoComposition:(id<TuSDKMediaVideoComposition> __nullable)videoComposition audioComposition:(id<TuSDKMediaAudioComposition> __nullable)audioComposition composorSettings:(TuSDKMediaCompositionVideoComposerSettings *__nullable)composorSettings

Parameters

videoComposition

视频合成物

audioComposition

音频合成物

composorSettings

合成器配置

Return Value

TuSDKMediaCompositionComposer

Availability

v3.4.1

Declared In

TuSDKMediaMovieCompositionComposer.h

  status

当前合成器状态

@property (nonatomic, readonly) TuSDKMediaExportSessionStatus status

Availability

v3.4.1

Declared In

TuSDKMediaMovieCompositionComposer.h

  delegate

设置事件委托

@property (nonatomic) id<TuSDKMediaMovieCompositionComposerDelegate> delegate

Availability

v3.4.1

Declared In

TuSDKMediaMovieCompositionComposer.h

– startExport

开始合成

- (void)startExport

Availability

v3.4.1

Declared In

TuSDKMediaMovieCompositionComposer.h

– cancelExport

取消合成

- (void)cancelExport

Availability

v3.4.1

Declared In

TuSDKMediaMovieCompositionComposer.h

MediaEffectManager Methods

– addMediaEffect:

添加一个多媒体特效。该方法不会自动设置触发时间.

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

Parameters

mediaEffect

特效数据

Availability

v2.0

Discussion

如果已有特效和该特效不能同时共存,已有旧特效将被移除.

Declared In

TuSDKMediaMovieCompositionComposer.h

– removeMediaEffect:

移除特效数据

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

Parameters

mediaEffect

TuSDKMediaEffectData

Availability

v3.4.1

Declared In

TuSDKMediaMovieCompositionComposer.h

– removeMediaEffectsWithType:

移除指定类型的特效信息

- (void)removeMediaEffectsWithType:(NSUInteger)effectType

Parameters

effectType

特效类型

Availability

v3.4.1

Declared In

TuSDKMediaMovieCompositionComposer.h

– removeAllMediaEffect

v3.4.1

- (void)removeAllMediaEffect

Availability

v3.4.1

Discussion

移除所有特效

Declared In

TuSDKMediaMovieCompositionComposer.h

– mediaEffectsWithType:

获取指定类型的特效信息

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

Parameters

effectType

特效数据类型

Return Value

特效列表

Availability

v3.4.1

Declared In

TuSDKMediaMovieCompositionComposer.h

– allMediaEffects

获取添加的所有特效

- (NSArray<id<TuSDKMediaEffect> > *_Nonnull)allMediaEffects

Return Value

特效列表

Availability

v3.4.0

Declared In

TuSDKMediaMovieCompositionComposer.h