问题
Possible Duplicate:
Save Youtube video to iPhone in the app
I want to download and save a youtube video from a given youtube video link, programmatically. Can anyone point to some sample app. Help appreciated.
回答1:
Does the AVAssetWriter class help you at all?
http://developer.apple.com/library/ios/#documentation/AVFoundation/Reference/AVAssetWriter_Class/Reference/Reference.html
回答2:
Check out which URL and algorithm I used: https://github.com/H2CO3/PwnTube
回答3:
Not a problem:
Here is my example:
I used PSYouTubeExtractor.h class by Peter Steinberger It can get youtube mp4 video url and than downloading and viewing is not a problem
来源:https://stackoverflow.com/questions/4498734/how-to-download-youtube-videos-for-iphone-using-objective-c-programmatically