MPMoviePlayerController is playing YouTube video?

本小妞迷上赌 提交于 2019-11-29 12:13:57

There is no official API to get the "right" url, and likely there never will be. See the following link on the bottom.

http://groups.google.com/group/youtube-api-gdata/browse_thread/thread/394c41dda8b4745a

Note that your method based on UIWebView does not play the movie in MPMoviePlayerController, but rather in a custom class called YTMoviePlayer. You can confirm it by playing a movie and then dumping the subview hierarchy starting at [[UIApplication sharedApplication] keyWindow].

For me this library did work perfectly! https://github.com/hellozimi/HCYoutubeParser

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