Hi guys i am working on an app that fetches youtube video ids from my server & play those videos using YTPlayerView
framework.
Now, i want to stream those videos using GoogleCast
. Some where i saw that google cast not works on UIWebView. Basically YTPlayerView
is also built on top of UIWebView
.
My question is, is it possible to stream embed videos using Google cast SDK from YTPlayerView
in iOS app ?
Here is the code how am loading video using YTPlayerView
:
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)