iOS App

iOS App / UIWebView

WKWebView

Starting with iOS 8, for displaying any web content use WKWebView class (WebKit View) from Xcode Object Library. The default options for WKWebView are:

  • AirPlay true
  • Inline Playback true

UIWebView

You can use UIWebView on iOS 10 devices and below, remember to set mediaPlaybackRequiresUserAction to false.

class ViewController: UIViewController {
    @IBOutlet weak var uiWebView: UIWebView!

    override func loadView {
        super.loadView();
        self.uiWebView.mediaPlaybackRequiresUserAction = false;
    }
}

We highly recommend using WKWebView instad. More Information

On iOS 12 devices a UIWebView component is no longer working, and video content won’t load within the glomex player