Returns a CFDictionary
version of a CMTime
.
SDKs
- iOS 9.0+
- macOS 10.11+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 6.0+
Framework
- Core Media
Declaration
func CMTimeMappingCopyAsDictionary(_ mapping: CMTime Mapping, allocator: CFAllocator?) -> CFDictionary?
Parameters
mapping
The
CMTime
from which to create a dictionary.Mapping allocator
CFAllocator
with which to create a dictionary. Passk
to use the default allocator.CFAllocator Default
Return Value
A CFDictionary
version of the CMTime
.
Discussion
This is useful when putting a CMTime
in CF container types.