Possible Duplicate:
Save Youtube video to iPhone in the app可能重复:在应用程序中将Youtube视频保存到iPhone
Is there any sdk or way to download youtube video with youtube url in iphone programmatically.
是否有任何sdk或方式可以通过iphone编程方式下载youtube网址。
Please help me out for the same.
请帮帮我。
Thanks in advance.
提前致谢。
Regards,
问候,
2 个解决方案
#1
1
If you are planning to release that app to AppStore I wouldn't advise you to leave that option. Youtube rules are not permitting that and Apple is following them very much these days although there are apps on AppStore that have that functionality enabled. One of my friends tried to add offline play to his Youtube player app and got rejected because of it.
如果您打算将该应用程序发布到AppStore,我不会建议您保留该选项。虽然AppStore上的应用程序启用了该功能,但Youtube规则并未允许这样做,而Apple现在非常关注它们。我的一个朋友试图将离线游戏添加到他的Youtube播放器应用程序中并因此被拒绝。
#2
0
1) Get the NSURL Object First using url string.
2) Allocate and start an NSURLConnection to fetch the file from the URL. Do not use sendSynchronousRequest:returningResponse:error
3) In the connection:didReceiveResponse: delegate method, create NSData object
4) In the connection:didReceiveData: delegate method, get the data and append it to NSData object
5) play the video using MPMoviePlayerController after getting data.
#1
1
If you are planning to release that app to AppStore I wouldn't advise you to leave that option. Youtube rules are not permitting that and Apple is following them very much these days although there are apps on AppStore that have that functionality enabled. One of my friends tried to add offline play to his Youtube player app and got rejected because of it.
如果您打算将该应用程序发布到AppStore,我不会建议您保留该选项。虽然AppStore上的应用程序启用了该功能,但Youtube规则并未允许这样做,而Apple现在非常关注它们。我的一个朋友试图将离线游戏添加到他的Youtube播放器应用程序中并因此被拒绝。
#2
0
1) Get the NSURL Object First using url string.
2) Allocate and start an NSURLConnection to fetch the file from the URL. Do not use sendSynchronousRequest:returningResponse:error
3) In the connection:didReceiveResponse: delegate method, create NSData object
4) In the connection:didReceiveData: delegate method, get the data and append it to NSData object
5) play the video using MPMoviePlayerController after getting data.