   ///   - accessToken: An optional oauth token. If provided it will be passed as Bearer token to the player.
   ///   - cookies:     An optional array of HTTPCookie values that are passed to the player.
   ///   - allowIDFA:   Allow IDFA Collection. Defaults true
-  ///   - allowPiP: Allow Picture in Picture on iPad. Defaults true
+  ///   - allowPiP:    Allow Picture in Picture on iPad. Defaults true
+  ///   - allowAudioSessionActive: In order to control the view-ability of the Ads, OMID SDK needs AVAudioSession sharedInstance of app to be set to .mixWithOthers options and Active. Disabling this will affect Ads monetisation of your app.
   public init(parameters: [String: Any], baseUrl: URL? = nil, accessToken: String? = nil,
-              cookies: [HTTPCookie]? = nil, allowIDFA: Bool = true, allowPiP: Bool = true) {
+              cookies: [HTTPCookie]? = nil, allowIDFA: Bool = true, allowPiP: Bool = true, allowAudioSessionActive: Bool = true) {
     super.init(nibName: nil, bundle: nil)
-
+    
+    self.allowAudioSessionActive = allowAudioSessionActive
+    
     if OMIDDailymotionSDK.shared.isActive {
       allowOMSDK = true
     } else {

    }

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

import OMSDK_Dailymotion
import UIKit
import WebKit
import AVKit

public protocol DMPlayerViewControllerDelegate: AnyObject {
  
