iPhone App :How to play Youtube video in app using MPMoviePlayerController

China☆狼群 提交于 2019-12-03 10:04:08

There is a great thread that on IphoneDevSDk.

They work with a hidden UIWebView: http://www.iphonedevsdk.com/forum/iphone-sdk-development/61447-how-play-youtube-movie.html

Narayanan Ramamoorthy
  NSString *url = @"http://www.example.com/path/to/movie.mp4";
  MPMoviePlayerController *moviePlayer = [[MPMoviePlayerController alloc] initWithContentURL:[NSURL URLWithString:url]];
  [moviePlayer play];

Check this and release the controller.

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