TuSDKMediaExtractor Protocol Reference

Conforms to NSObject
Declared in TuSDKMediaExtractor.h

Overview

媒体数据读取器接口

  asset required method

@property asset

@property (nonatomic, readonly) AVAsset *asset

Availability

v3.0

Discussion

@discussion 输入 _Nullable 的视频源

Declared In

TuSDKMediaExtractor.h

  outputSettings required method

获取设置信息

@property (nonatomic) TuSDKMediaAssetExtractorSettings *outputSettings

Availability

v3.0

Declared In

TuSDKMediaExtractor.h

  isExport required method

是否是导出时的解码器

@property (nonatomic, assign) BOOL isExport

Availability

v3.4.5

Declared In

TuSDKMediaExtractor.h

  outputTrackMediaType required method

分离的轨道数据类型

@property (nonatomic, readonly) AVMediaType _Nonnull outputTrackMediaType

Availability

v3.0

Declared In

TuSDKMediaExtractor.h

  status required method

@property status 解码器当前状态

@property (nonatomic, readonly) TuSDKMediaAssetExtractorStatus status

Availability

v3.0

Declared In

TuSDKMediaExtractor.h

  processQueue required method

@property processQueue

@property (nonatomic) dispatch_queue_t _Nullable processQueue

Availability

v3.0

Discussion

@discussion Decoding run queue

Declared In

TuSDKMediaExtractor.h

  inputDuration required method

媒体的真实时长

@property (nonatomic, readonly) CMTime inputDuration

Availability

v3.0

Declared In

TuSDKMediaExtractor.h

  outputDuration required method

分离数据的总时长

@property (nonatomic, readonly) CMTime outputDuration

Availability

v3.0

Declared In

TuSDKMediaExtractor.h

  outputPresentationTime required method

获取当前视频帧原始时间

@property (nonatomic, readonly) CMTime outputPresentationTime

Return Value

视频帧时间

Availability

v3.0

Declared In

TuSDKMediaExtractor.h

  frameInterval required method

获取实时帧间隔时间

@property (nonatomic, readonly) CMTime frameInterval

Return Value

视频帧间隔

Availability

v3.0

Declared In

TuSDKMediaExtractor.h

  nominalFrameRate required method

获取视频帧率

@property (nonatomic, readonly) float nominalFrameRate

Return Value

视频帧率

Availability

v3.0

Declared In

TuSDKMediaExtractor.h

  extractorFrameDuration required method

The value of the extractorFrameDuration property is set to a value short enough to accommodate the greatest nominal frame rate value among the asset’s video tracks, as indicated by the nominalFrameRate property of each track. If all of the asset tracks have a nominal frame rate of 0, a frame rate of 30 frames per second is used, with the frame duration set accordingly. extractorFrameDuration属性的值被设置为一个足够短的值,以容纳资产的视频轨道中最大的名义帧速率值,这是由每条轨道的名义上的属性所指示的。如果所有资产跟踪的名义帧速率为0,则使用每秒30帧的帧速率,并相应地设置帧持续时间。

@property (nonatomic) CMTime extractorFrameDuration

Availability

v3.0

Declared In

TuSDKMediaExtractor.h

  videoComposition required method

@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

TuSDKMediaExtractor.h

– start required method

开始读取

- (void)start

Availability

v3.0

Declared In

TuSDKMediaExtractor.h

– stop required method

停止读取

- (void)stop

Availability

v3.0

Declared In

TuSDKMediaExtractor.h

– pause required method

暂停输出

- (void)pause

Availability

v3.0

Declared In

TuSDKMediaExtractor.h

– peekSampleBuffer required method

读取当前已解码的媒体数据

- (const CMSampleBufferRef _Nullable)peekSampleBuffer

Return Value

已解码的媒体数据

Availability

v3.0

Declared In

TuSDKMediaExtractor.h

– advance required method

移动视频到下一帧

- (BOOL)advance

Return Value

true/false

Availability

v3.0

Declared In

TuSDKMediaExtractor.h

– seekTo: required method

移动读取光标

- (void)seekTo:(CMTime)time

Parameters

time

光标读取时间

Availability

v3.0

Declared In

TuSDKMediaExtractor.h

– destory required method

销毁分离器

- (void)destory

Availability

v3.0

Declared In

TuSDKMediaExtractor.h