TuSDKMediaTimelineAssetExtractor Class Reference

Inherits from TuSDKMediaAssetTimeline : NSObject
Conforms to TuSDKMediaTimelineExtractor
Declared in TuSDKMediaTimelineAssetExtractor.h

Overview

AVAsset 媒体数据读取类

Other Methods

– initWithAsset:outputTrackMediaType:outputSettings:

初始化数据分离器

- (instancetype _Nullable)initWithAsset:(AVAsset *_Nonnull)asset outputTrackMediaType:(AVMediaType _Nonnull)mediaType outputSettings:(TuSDKMediaAssetExtractorSettings *_Nullable)outputSettings

Parameters

asset

媒体资产

outputSettings

输出设置 An NSDictionary of output settings to be used for sample output. See AVAudioSettings.h for available output settings for audio tracks or AVVideoSettings.h for available output settings for video tracks and also for more information about how to construct an output settings dictionary.

Declared In

TuSDKMediaTimelineAssetExtractor.h

  videoComposition

@property videoComposition @abstract The composition of video used by the receiver.

@property (nonatomic, copy, nullable) AVVideoComposition *videoComposition

Discussion

@discussion The value of this property is an AVVideoComposition that can be used to specify the visual arrangement of video frames read from each source track over the timeline of the source asset.

This property cannot be set after reading has started.

Declared In

TuSDKMediaTimelineAssetExtractor.h

DetectAsset Methods

– detecAssetInfo

探测资产信息

- (void)detecAssetInfo

Availability

v3.0

Declared In

TuSDKMediaTimelineAssetExtractor.h

Cache Methods

– cacheSamplebuffers

缓存数据帧

- (BOOL)cacheSamplebuffers

Return Value

true/falses

Availability

v3.0

Declared In

TuSDKMediaTimelineAssetExtractor.h