 
 extension DMPlayerViewController: WKNavigationDelegate {
   
-  public func webView(_ webView: WKWebView, decidePolicyFor navigationAction: WKNavigationAction,
+  open func webView(_ webView: WKWebView, decidePolicyFor navigationAction: WKNavigationAction,
                       decisionHandler: @escaping (WKNavigationActionPolicy) -> Void) {
     guard let url = navigationAction.request.url else {
       decisionHandler(.allow)

    super.init(coder: aDecoder)
  }
  
  public func loadWebView(parameters: [String: Any], baseUrl: URL? = nil, accessToken: String? = nil, cookies: [HTTPCookie]? = nil) {
    self.baseUrl = baseUrl ?? DMPlayerViewController.defaultUrl
    webView = newWebView(cookies: cookies)
    view = webView

  fileprivate var videoIdToLoad: String?
  fileprivate var payloadToLoad: String?
  
  open weak var delegate: DMPlayerViewControllerDelegate?

  private var webView: WKWebView!

