   fileprivate var videoIdToLoad: String?
   fileprivate var payloadToLoad: String?
   
-  public weak var delegate: DMPlayerViewControllerDelegate?
+  open weak var delegate: DMPlayerViewControllerDelegate?
 
   private var webView: WKWebView!
 

  ///
  /// - Parameter videoId: The video's XID
  /// - Parameter payload: An optional payload to pass to the load
  public func load(videoId: String, payload: String? = nil) {
    guard isInitialized else {
      self.videoIdToLoad = videoId
      self.payloadToLoad = payload


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