TuSDKMediaCompositionSampleBuffer Class Reference

Inherits from NSObject
Declared in TuSDKMediaCompositionSampleBuffer.h

Overview

一帧数据缓存,可自动管理 CMSampleBufferRef 的生命周期

– initWithSampleBuffer:

初始化 TuSDKMediaCompositionSampleBuffer

- (instancetype)initWithSampleBuffer:(CMSampleBufferRef)bufferRef

Parameters

bufferRef

CMSampleBufferRef

Return Value

TuSDKMediaCompositionSampleBuffer

Availability

v3.4.1

Declared In

TuSDKMediaCompositionSampleBuffer.h

  sampleBufferRef

数据缓存

@property (nonatomic, readonly) CMSampleBufferRef sampleBufferRef

Availability

v3.4.1

Declared In

TuSDKMediaCompositionSampleBuffer.h

  outputTime

当前输出时间 默认 CMSampleBufferGetOutputPresentationTimeStamp

@property (nonatomic) CMTime outputTime

Availability

v3.4.1

Declared In

TuSDKMediaCompositionSampleBuffer.h

– destory

释放持有的数据缓存

- (void)destory

Availability

v3.4.1

Declared In

TuSDKMediaCompositionSampleBuffer.h