AVLocationPlayer: Using AVFoundation Metadata Reading APIs
Version 1.0, 2015-04-30
Demonstrates how to use AVFoundation APIs to read location metadata from a movie file.
Xcode 5.1 or later, Mac OS X v10.10 or later
Mac OS X v10.10 or later
AVLocationPlayer demonstrates how to use AVAssetReaderOutputMetadataAdaptor to read location metadata from a movie file containing this information. The location data is then plotted on MKMapView to present the location path where the video was recorded. This sample also shows the use of AVPlayerItemMetadataOutput to show current location on the drawn path during playback.