AVMetadataRecordPlay: Timed Metadata Capture Recording and Playback

Last Revision:
Version 1.2, 2017-03-09
Adds Swift version
(Full Revision History)
Build Requirements:
Xcode 8.1, iOS SDK 10.0
Runtime Requirements:
iOS 10.0

The AVMetadataRecordPlay sample demonstrates how to use AVFoundation capture APIs to record and play movies with timed metadata content. The sample also shows how to use timed-metadata tracks to record detected-face, video orientation, and GPS metadata. When playing back content, the AVMetadataRecordPlay class reads the detected-face and GPS timed metadata tracks and uses it to render augmentations on the video layer to indicate their values. AVMetadataRecordPlay also reads the video orientation metadata and dynamically adjusts the video layer to properly render the content. The sample runs only on an actual device (iPad or iPhone); you can’t run it in the Simulator.