用 UIWebView 载入一个 youku的视频链接,有什么方法让它自动全屏播放视频吗?不需要用户手动点击播放按钮。
UIWebView *webView = [[UIWebView alloc]initWithFrame:self.view.bounds];
webView.delegate = self;
webView.allowsInlineMediaPlayback = YES;
webView.mediaPlaybackRequiresUserAction = NO;
[self.view addSubview:webView];
NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:@"http://v.youku.com/v_show/id_XMTI4ODU0ODk3Ng==.html"]];
[webView loadRequest:request];