Function

CMTimeMake(value:timescale:)

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

Declaration

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

Parameters

value

Initializes the value field of the resulting CMTime.

timescale

Initializes the timescale 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 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.