I want to have small YouTube player in my app. The only way i found to be recommended is embeding web page with YouTube player into my app. So i used WKWebView and loaded em
var youTubeVideoHTML: String = " " func playVideoWithId(videoId: String) { var html: String = String(format: youTubeVideoHTML, self.frame.size.width, self.frame.size.height, videoId) }
Or Alternative you can use
YTPlayer For Playing Youtube Video