TuSDKMediaAssetComposition Class Reference

Inherits from NSObject
Declared in TuSDKMediaAssetComposition.h

Overview

资产切片

– initWithMediaAsset:

初始化资产切片对象

- (instancetype)initWithMediaAsset:(TuSDKMediaAsset *_Nonnull)mediaAsset

Parameters

mediaAsset

输入的资产信息

Availability

v3.0.1

Declared In

TuSDKMediaAssetComposition.h

  inputMediaAsset

输入的资产信息

@property (nonatomic, readonly) TuSDKMediaAsset *inputMediaAsset

Availability

v3.0.1

Declared In

TuSDKMediaAssetComposition.h

  outputSize

输出宽高 默认:原资产宽高

@property (nonatomic) CGSize outputSize

Availability

v3.0.1

Declared In

TuSDKMediaAssetComposition.h

  outputAsset

输出的资产信息

@property (nonatomic, readonly) AVAsset *outputAsset

Availability

v3.0.1

Declared In

TuSDKMediaAssetComposition.h

  outputTransform

输出变换

@property (nonatomic) CGAffineTransform outputTransform

Availability

v3.0.1

Declared In

TuSDKMediaAssetComposition.h

  videoComposition

根据 outputSize 及 mediaAsset 信息自动生成 videoComposition 信息. videoComposition 将包含视频缩放,视频旋转,居中裁剪等指令。

@property (nonatomic, readonly) AVMutableVideoComposition *videoComposition

Availability

v3.0.1

Declared In

TuSDKMediaAssetComposition.h