TuSDKTimeRange Class Reference

Inherits from NSObject
Declared in TuSDKTimeRange.h

+ makeTimeRangeWithStart:duration:

创建一个TuSDKTimeRange对象

+ (instancetype)makeTimeRangeWithStart:(CMTime)start duration:(CMTime)duration

Parameters

start

开始时间

duration

持续时间

Return Value

TuSDKTimeRange

Declared In

TuSDKTimeRange.h

+ makeTimeRangeWithStartSeconds:durationSeconds:

创建一个TuSDKTimeRange对象

+ (instancetype)makeTimeRangeWithStartSeconds:(Float64)startSeconds durationSeconds:(Float64)durationSeconds

Parameters

startSeconds

开始时间

durationSeconds

持续时间

Return Value

TuSDKTimeRange

Declared In

TuSDKTimeRange.h

+ makeTimeRangeWithStart:end:

创建一个TuSDKTimeRange对象

+ (instancetype)makeTimeRangeWithStart:(CMTime)start end:(CMTime)end

Parameters

start

开始时间

end

结束时间

Return Value

TuSDKTimeRange

Declared In

TuSDKTimeRange.h

+ makeTimeRangeWithStartSeconds:endSeconds:

创建一个TuSDKTimeRange对象

+ (instancetype)makeTimeRangeWithStartSeconds:(Float64)startSeconds endSeconds:(Float64)endSeconds

Parameters

startSeconds

开始时间

endSeconds

结束时间

Return Value

TuSDKTimeRange

Declared In

TuSDKTimeRange.h

  start

开始时间

@property (nonatomic, assign) CMTime start

Declared In

TuSDKTimeRange.h

  duration

持续时间

@property (nonatomic, assign) CMTime duration

Declared In

TuSDKTimeRange.h

  end

结束时间 只读类型 若需要修改结束时间,请通过修改duration进行

@property (nonatomic, assign, readonly) CMTime end

Declared In

TuSDKTimeRange.h

– startSeconds

开始时间(秒)

- (Float64)startSeconds

Return Value

开始时间

Declared In

TuSDKTimeRange.h

– durationSeconds

持续时间(秒)

- (Float64)durationSeconds

Return Value

持续时间

Declared In

TuSDKTimeRange.h

– endSeconds

结束时间(秒)

- (Float64)endSeconds

Return Value

结束时间

Declared In

TuSDKTimeRange.h

– CMTimeRange

TuSDKTimeRange 转为 CMTimeRange

- (CMTimeRange)CMTimeRange

Return Value

CMTimeRange

Declared In

TuSDKTimeRange.h

– isValid

时间范围是否有效

- (BOOL)isValid

Return Value

true/false

Declared In

TuSDKTimeRange.h

– containsTimeRange:

是否包含另一个timeRange

- (BOOL)containsTimeRange:(TuSDKTimeRange *)timeRange

Return Value

true/false

Declared In

TuSDKTimeRange.h

– verifyOtherTimeRange:

校验另一个 timeRange,得到一个新的包含在内的 timeRange

- (TuSDKTimeRange *)verifyOtherTimeRange:(TuSDKTimeRange *)timeRange

Return Value

校验后的 timerange

Declared In

TuSDKTimeRange.h