TuSDKMediaAssetDirectorPlayerSync Class Reference

Inherits from NSObject
Conforms to TuSDKMediaSync
Declared in TuSDKMediaAssetDirectorPlayerSync.h

Overview

媒体执行器同步器 可以用于同步音视频数据

– initWithVideoExtractor:audioExtractor:

初始化 TuSDKMediaAssetDirectorPlayerSync

- (instancetype)initWithVideoExtractor:(id<TuSDKMediaTimelineExtractor>)videoExtractor audioExtractor:(id<TuSDKMediaTimelineExtractor>)audioExtractor

Parameters

videoExtractor

视频分离器

audioExtractor

音频数据分离器

Return Value

TuSDKMediaAssetDirectorPlayerSync

Declared In

TuSDKMediaAssetDirectorPlayerSync.h

  videoExtractorSync

视频数据分离器

@property (nonatomic, readonly) TuSDKMediaAssetExtractorVideoSync *videoExtractorSync

Availability

v3.0

Declared In

TuSDKMediaAssetDirectorPlayerSync.h

  audioExtractorSync

音频数据分离器

@property (nonatomic, readonly) TuSDKMediaAssetExtractorAudioSync *audioExtractorSync

Availability

v3.0

Declared In

TuSDKMediaAssetDirectorPlayerSync.h

  audioOutputDuration

当前音频已读取的时长

@property (nonatomic, readonly) CMTime audioOutputDuration

Availability

v3.0

Declared In

TuSDKMediaAssetDirectorPlayerSync.h

– seekTo:

跳转到指定位置

- (void)seekTo:(CMTime)outputTime

Availability

v3.0

Declared In

TuSDKMediaAssetDirectorPlayerSync.h