Function

CMTimeMakeWithEpoch(value:timescale:epoch:)

Makes a valid CMTime with value, scale and epoch.

Declaration

func CMTimeMakeWithEpoch(value: Int64, timescale: Int32, epoch: Int64) -> CMTime

Parameters

value

Initializes the value field of the resulting CMTime.

timescale

Initializes the scale field of the resulting CMTime.

epoch

Initializes the epoch field of the resulting CMTime.

Return Value

The resulting CMTime.

See Also

Creating Times

init()

Initializes a new CMTime equal to kCMTimeInvalid.

init(seconds: Double, preferredTimescale: CMTimeScale)

Makes a CMTime from a Double number of seconds, and a preferred timescale.

init(value: CMTimeValue, timescale: CMTimeScale)

Makes a valid CMTime with value and timescale. Epoch is implied to be 0.

func CMTimeMake(value: Int64, timescale: Int32) -> CMTime

Makes a valid CMTime with value and timescale. Epoch is implied to be 0.

func CMTimeMakeFromDictionary(CFDictionary?) -> CMTime

Reconstitutes a CMTime struct from a CFDictionary previously created by CMTimeCopyAsDictionary(_:allocator:).

func CMTimeMakeWithSeconds(Float64, preferredTimescale: Int32) -> CMTime

Makes a CMTime from a Float64 number of seconds, and a preferred timescale.