i\'ve been using an html string for a long period for playing youtube videos through an UIWebView, the problem is i want to get notifications with playbackstate changed. i\'
Make use of custom LBYouTubePlayerViewController
It is a subclass of MPMoviePlayerViewController
.
LBYouTubeView is just a small view that is able to display YouTube videos in a MPMoviePlayerController
. You even have the choice between high-quality and standard quality stream.
It just loads the HTML code of YouTube's mobile website and looks for the data in the script tag.
LBYouTubeView doesn't use UIWebView which makes it faster and look cleaner.