Initializer

init(value:timescale:)

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

Declaration

init(value: CMTimeValue, timescale: CMTimeScale)

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.

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.