TuSDKMediaTimeEffect Protocol Reference

Conforms to NSObject
Declared in TuSDKMediaTimeEffect.h

Overview

时间特效基础类

  timeRange required method

时间特效

@property (nonatomic, readonly) TuSDKMediaTimeRange *timeRange

Availability

v3.0

Declared In

TuSDKMediaTimeEffect.h

  overTime required method

应用特效后被累加的视频时间. 如果 dropOverTime 属性设置为 true,将从视频尾部丢弃 overTime 返回的视频时长。

@property (nonatomic, readonly) CMTime overTime

Availability

v3.0

Declared In

TuSDKMediaTimeEffect.h

  timeSlices required method

获取时间特效片段

@property (nonatomic, readonly) NSArray<TuSDKMediaTimelineSlice*> *timeSlices

Return Value

NSArrayTuSDKMediaTimelineSlice *>

Availability

v3.0

Declared In

TuSDKMediaTimeEffect.h

  dropOverTime required method

应用某些时间特效后,视频总时长会被增加 ( overTime 属性可查询累加的视频时长 ),通过该属性可以明确告知 SDK 是否从尾部丢弃累加的 overTime 时长。 true : 从原视频尾部丢弃特效累加的时长,视频总时长将不变。( 注意:如果应用特效后总时长大于元视频时长该配置将忽略 ) false : 禁止丢弃尾部视频,总时长将增加。

@property (nonatomic) BOOL dropOverTime

Availability

v3.0

Declared In

TuSDKMediaTimeEffect.h