 import OMSDK_Dailymotion
 import UIKit
 import WebKit
+import AVKit
 
 public protocol DMPlayerViewControllerDelegate: AnyObject {
   

        allowOMSDK = false
      }
    }

    if allowIDFA {
      deviceIdentifier = advertisingIdentifier()
    }
    if parameters.contains(where: { $0.key == DMPlayerViewController.loggerParameterKey }) {
      loggerEnabled = true
    }

    }

    self.loadWebView(parameters: parameters, baseUrl: baseUrl, accessToken: accessToken, cookies: cookiesToLoad, allowPiP: allowPiP)
  }

  @objc private func willEnterInForeground(notification: NSNotification) {
    setAudioSession()
  }
  
  private func newWebView(cookies: [HTTPCookie]?, allowPiP: Bool = true) -> WKWebView {
