title: Google cast youtube embed videos
body: <p>Hi guys i am working on an app that fetches youtube video ids from my server &amp; play those videos using <code>YTPlayerView</code> framework.</p>
  
  <p>Now, i want to stream those videos using <code>GoogleCast</code>. Some where i saw that google cast not works on UIWebView. Basically <code>YTPlayerView</code> is also built on top of <code>UIWebView</code>.</p>
  
  <p>My question is, is it possible to stream embed videos using Google cast SDK from <code>YTPlayerView</code> in iOS app ?</p>
  
  <p>Here is the code how am loading video using <code>YTPlayerView</code> :</p>
  
  <pre><code>var params = ["controls":2, "playsinline":0, "autohide":1, "origin":"http://www.youtube.com","autoPlay":1, "showinfo":0, "modestbranding":0, "rel":0]
  self.videoPlayerView.loadWithVideoId(movieId, playerVars: params)
  </code></pre>