title: Embed video from youtube.com into iphone app
body: <p>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 and i'm placing there this code.</p>
  
  <pre><code>&lt;embed id="yt" src="http://www.youtube.com/watch?v=L9szn1QQfas&amp;fs=0" type="application/x-shockwave-flash" width="%width%" height="%height%"&gt;&lt;/embed&gt;
  </code></pre>
  
  <p>The problem is the video always opens in the fullscreen mode. I've changed my webview property allowsInlineMediaPlayback to YES <code>_webview.allowsInlineMediaPlayback = YES;</code> but it doesn't works too. Is there a way to play videos from youtube without fullscreen?</p>
  
  <p>I'm also tried to embed like this</p>
  
  <pre><code>&lt;iframe title="YouTube video player" id="videoframe" width="%width%" height="%height%" src="http://www.youtube.com/embed/L9szn1QQfas?rel=0" frameborder="0"&gt;&lt;/iframe&gt;
  </code></pre>
  
  <p>and this</p>
  
  <pre><code>&lt;object type="application/x-shockwave-flash" data="http://www.youtube.com/v/L9szn1QQfas" width="%width%" height="%height%"&gt;
  &lt;param name="movie" value="http://www.youtube.com/v/L9szn1QQfas" /&gt;
  &lt;param name="quality" value="high" /&gt;
  &lt;param name="allowFullScreen" value="false" /&gt;
  &lt;embed id="yt" src="http://www.youtube.com/v/L9szn1QQfas" type="application/x-shockwave-flash" width="%width%" height="%height%"&gt;&lt;/embed&gt;
  &lt;/object&gt;
  </code></pre>
  
  <p>Thanks.</p>