TuSDKAssetVideoDecoder Class Reference

Inherits from NSObject
Conforms to TuSDKMediaDecoder
Declared in TuSDKAssetVideoDecoder.h

Overview

TuSDKAssetVideoDecoder

– initWithAsset:outputSettings:

初始化视频解码器

- (instancetype _Nullable)initWithAsset:(AVAsset *_Nullable)asset outputSettings:(TuSDKAssetVideoDecoderVideoSettings *_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.

Return Value

TuSDKAssetAudioDecoder

Declared In

TuSDKAssetVideoDecoder.h

  processQueue

processQueue

@property (nonatomic) dispatch_queue_t _Nullable processQueue

Declared In

TuSDKAssetVideoDecoder.h

  delegate

delegate

@property (nonatomic, weak) id<TuSDKAssetVideoDecoderDelegate> _Nullable delegate

Declared In

TuSDKAssetVideoDecoder.h

  status

@property status 解码器当前状态

@property (nonatomic, readonly) TuSDKAssetVideoDecoderStatus status

Declared In

TuSDKAssetVideoDecoder.h

  asset

@property asset

@property (nonatomic, readonly) AVAsset *asset

Discussion

@discussion 输入的视频源

Declared In

TuSDKAssetVideoDecoder.h

  timeRange

设置裁剪时间

@property (nonatomic) CMTimeRange timeRange

Declared In

TuSDKAssetVideoDecoder.h

  movieInfo

@property movieInfo

@property (nonatomic, readonly) TuSDKMediaAssetInfo *movieInfo

Discussion

@discussion 获取视频信息

Declared In

TuSDKAssetVideoDecoder.h

  outputSettings

@property outputSettings

@property (nonatomic, readonly) TuSDKAssetVideoDecoderVideoSettings *outputSettings

Discussion

@discussion 获取设置信息

Declared In

TuSDKAssetVideoDecoder.h

  outputSampleBufferInputTargets

@property outputSampleBufferInputTargets

@property (nonatomic, readonly) NSMutableArray<id<TuSDKSampleBufferInput> > *outputSampleBufferInputTargets

Discussion

@discussion 视频数据输出

Declared In

TuSDKAssetVideoDecoder.h