i\'m trying to embed youtube video into my iphone application. I\'m using UIWebView and loading embed code from youtube as html string. So i have a layout with basic html markup
As far as I'm aware, inline media playback is only supported on iPad, not iPhone. This would be due to size limitations with the screens.
Edit:
I setup a test project, with a UIWebView
and the code:
[webView setAllowsInlineMediaPlayback:YES];
[webView loadHTMLString:@""
baseURL:nil];
I ran the same exact code on both an iPhone and an iPad, both running iOS 4.2.1.
The results were that the iPhone would only play the video in fullscreen mode, regardless of setting the inline media playback to YES
and the iPad played the video inline. Here's a picture: