You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I have a question. How do I embed YTSwiftyPlayer(ie WKWebView) inside a UIView and make it honor the UIView's bounds?
I have tried but it looks like the YTSwiftyPlayer ignores the bounds. Greatly appreciate any help.
Thanks Vittal
(email-dot-vittal-at-gmail-dot-com)
Hi,
I have a question. How do I embed YTSwiftyPlayer(ie WKWebView) inside a UIView and make it honor the UIView's bounds?
I have tried but it looks like the YTSwiftyPlayer ignores the bounds. Greatly appreciate any help.
Thanks Vittal
(email-dot-vittal-at-gmail-dot-com)
@IBOutlet weak var viewForYTPlayer: UIView!
player = YTSwiftyPlayer(
frame: viewForYTPlayer.bounds,
playerVars: [
.playsInline(true),
.videoID("0GCW7VkojeQ"),
.loopVideo(true),
.showRelatedVideo(false)
])
viewForYTPlayer.autoresizingMask = [.flexibleWidth, .flexibleHeight]
self.viewForYTPlayer.addSubview(player)
The text was updated successfully, but these errors were encountered: