   private static var omidScriptUrl: URL? = DailymotionSDK.resourceBundle?.url(forResource: "omsdk-v1", withExtension: "js")
 
   private var allowOMSDK = false
+  private var allowAudioSessionActive = false
   private var omidAdEvents: OMIDDailymotionAdEvents?
   private var omidMediaEvents: OMIDDailymotionMediaEvents?
   private var currentQuartile: Quartile = .Init

    }

    self.loadWebView(parameters: parameters, baseUrl: baseUrl, accessToken: accessToken, cookies: cookiesToLoad, allowPiP: allowPiP)
  }
  
  private func newWebView(cookies: [HTTPCookie]?, allowPiP: Bool = true) -> WKWebView {

        allowOMSDK = false
      }
    }
    
    NotificationCenter.default.addObserver(self, selector: #selector(self.willEnterInForeground), name: UIApplication.willEnterForegroundNotification, object: nil)
    setAudioSession()
    
    if allowIDFA {
      deviceIdentifier = advertisingIdentifier()
    }
    
    if parameters.contains(where: { $0.key == DMPlayerViewController.loggerParameterKey }) {
      loggerEnabled = true
    }
