I try to embed YouTube video in iOS app with the iframe generated by YouTube, but I can't show the video in HD.
The iframe that I generate is without suggestions, player controls, and Best privacy. I try to put the parameter vq=hd1080
and vq=large
and not work.
The size of the iframe I apply the same size of the screen:
webView.loadHTMLString("<html><body style=\"(margin:0)\"><embed width=\"\(view.frame.width)\" height=\"\(view.frame.height)\" src=\"https://www.youtube.com/embed/*********?rel=0&showinfo=0\" frameborder=\"0\" allowfullscreen></embed></body></html>", baseURL: nil)
The size of the WebView is full screen.