Instance Method

encode(_:forKey:)

Encodes a given Core Media time range structure and associates it with a specified key.

Declaration

func encode(_ timeRange: CMTimeRange, forKey key: String)

Parameters

timeRange

A CMTimeRange structure.

key

The key with which to associate timeRange in the archive.

See Also

Encoding Core Media Time Structures

func encode(CMTime, forKey: String)

Encodes a given Core Media time structure and associates it with a specified key.

func encode(CMTimeMapping, forKey: String)

Encodes a given Core Media time mapping structure and associates it with a specified key.