How to get YouTube autoplay to work in UIWebView?
问题 Platform: iOS 6.1. Xcode 4.6. I am using YouTube Javascript API and a UIWebView. I am able to manually tap on the video thumbnail to begin playback just fine. But, autoplay is not working. I am setting mediaPlaybackRequiresUserAction = NO for the web view as many have suggested. No luck. Here is the code: @interface VideoPlayerController : UIViewController <UIWebViewDelegate> @property(strong, nonatomic) IBOutlet UIWebView* webView; @end - (void) viewDidLoad { [super viewDidLoad]; self