Function

CMTimeMakeFromDictionary(_:)

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

Declaration

func CMTimeMakeFromDictionary(_ dictionaryRepresentation: CFDictionary?) -> CMTime

Parameters

dict

CFDictionary from which to create CMTime.

Return Value

The created CMTime.

Discussion

For keys in the dictionary, see Dictionary Keys.

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 CMTimeMakeWithSeconds(Float64, preferredTimescale: Int32) -> CMTime

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