hi i am trying to play embedded vimeo video in uiwebview. when i click the webview, the video begins to play in default player in portrait mode, when i click the full screen button, the video only zooms in portait mode, not turning to landscape mode. please advice how to play vimeo videos in landscape mode as well. thanks in advance
let embedHTML="<html><head><style type=\"text/css\">body {background-color: transparent;color: black;}</style><meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=yes\"/></head><body style=\"margin:0\"><div><iframe src=\"//player.vimeo.com/video/139785390?autoplay=1&title=1&byline=1&portrait=0\" width=\"640\" height=\"360\" frameborder=\"0\" webkit-playsinline webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe></div></body></html>"
let url: NSURL = NSURL(string: "https://vimeo.com/139785390")!
webView.loadHTMLString(embedHTML as String, baseURL:url as URL )
self.automaticallyAdjustsScrollViewInsets = false
webView.allowsInlineMediaPlayback = true
webView.contentMode = UIViewContentMode.scaleAspectFit