I do this in my iOS application using https://github.com/larcus94/LBYouTubeView
There is an LBYouTubeExtractor class that makes it easy to capture an iOS file for any YouTube link you submit.
LBYouTubeExtractor* extractor = [[LBYouTubeExtractor alloc] initWithURL:URL quality:quality]; extractor.delegate = self; [extractor startExtracting];
Works well ... Good luck.
source share