I need to get a (local) video\'s duration, and then get access to its individual frames as UIImages. So far I\'ve been using MPMoviePlayerController fo
UIImage
MPMoviePlayerController
You can get in swift like this
func getMediaDuration(url: NSURL!) -> Float64{ let asset : AVURLAsset = AVURLAsset(URL: url) as AVURLAsset let duration : CMTime = asset.duration return CMTimeGetSeconds(duration) }