TuSDKMediaAssetInfo Class Reference

Inherits from NSObject
Declared in TuSDKMediaAssetInfo.h

Overview

视频信息

– initWithAsset:

根据 AVAsset 初始化 TuSDKMediaAssetInfo

- (instancetype)initWithAsset:(AVAsset *)asset

Parameters

asset

资产信息

Return Value

TuSDKMediaAssetInfo

Availability

v3.0

Declared In

TuSDKMediaAssetInfo.h

  asset

视频轨道信息

@property (nonatomic, readonly) AVAsset *asset

Availability

v3.0

Declared In

TuSDKMediaAssetInfo.h

  videoInfo

视频轨道信息

@property (nonatomic, readonly) TuSDKVideoInfo *videoInfo

Availability

v2.2.0

Declared In

TuSDKMediaAssetInfo.h

  audioInfo

音频轨道信息

@property (nonatomic, readonly) TuSDKAudioInfo *audioInfo

Availability

v2.2.0

Declared In

TuSDKMediaAssetInfo.h

– loadSynchronouslyForAssetInfo:

异步加载视频信息

- (void)loadSynchronouslyForAssetInfo:(AVAsset *)asset

Parameters

asset

AVAsset

Availability

v2.2.0

Declared In

TuSDKMediaAssetInfo.h