UIButtonがあります。このボタンを押すと、YouTubeビデオを含むWebViewがロードされます。
- (IBAction)buttonAction:(id)sender {
UIWebView *webView = [[UIWebView alloc] initWithFrame:[MyButton frame]];
NSString *htmlString = @"<html> (...) </html>"; // HTML w/ the YouTube iFrame
webView.mediaPlaybackRequiresUserAction = NO;
[webView loadHTMLString:htmlString baseURL:nil];
[self.view addSubView:webView];
}
問題は、それが起こったとき、私はこの結果を得るということです:
WebViewをロードした直後にビデオの再生を開始したい。
ヒント/解決策はありますか?
ありがとう!