How to download youtube videos for iphone - using objective-c programmatically [duplicate]

和自甴很熟 提交于 2019-12-21 23:25:09

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!