TuSDKMediaAsset Class Reference

Inherits from NSObject
Declared in TuSDKMediaAsset.h

– initWithAsset:timeRange:

初始化资产切片对象

- (instancetype _Nonnull)initWithAsset:(AVAsset *_Nonnull)inputAsset timeRange:(CMTimeRange)timeRange

Parameters

inputAsset

输入的资产信息

timeRange

裁剪区间

Return Value

TuSDKMediaAssetSlice

Availability

v3.0.1

Declared In

TuSDKMediaAsset.h

  inputAsset

输入的资产信息

@property (nonatomic, readonly) AVAsset *inputAsset

Availability

v3.0.1

Declared In

TuSDKMediaAsset.h

  inputAssetInfo

获取视频信息,视频加载完成后可用

@property (nonatomic, readonly) TuSDKMediaAssetInfo *inputAssetInfo

Availability

v3.0

Declared In

TuSDKMediaAsset.h

  timeRange

切片时间

@property (nonatomic) CMTimeRange timeRange

Availability

v3.0.1

Declared In

TuSDKMediaAsset.h