How to download youtube videos for iphone - using objective-c programmatically [duplicate]
Possible Duplicate:
Save Youtube video to iPhone in the app
I want to download and save a youtube video from a given yo开发者_JS百科utube video link, programmatically. Can anyone point to some sample app. Help appreciated.
Does the AVAssetWriter class help you at all?
http://developer.apple.com/library/ios/#documentation/AVFoundation/Reference/AVAssetWriter_Class/Reference/Reference.html
Check out which URL and algorithm I used: https://github.com/H2CO3/PwnTube
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
精彩评论