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
There is one undocumented parameter "playsinline" now. I've tested it on iPhone 4S (iOS 6.1.2).
player = new YT.Player('player', {
height: '390',
width: '640',
videoId: 'u1zgFlCw8Aw',
playerVars: {
'playsinline': 1
}
});
And you should set the webview as well.
[webView setAllowsInlineMediaPlayback:YES];