       omidSession.mainAdView = webView
       omidAdEvents = try OMIDDailymotionAdEvents(adSession: omidSession)
       omidMediaEvents = try OMIDDailymotionMediaEvents(adSession: omidSession)
+      try addOMIDFriendlyObstructions(toOmidSession: omidSession)
       self.omidSession = omidSession
     } catch let error {
       print(error.localizedDescription)
+    }
+  }
+  
+  func addOMIDFriendlyObstructions(toOmidSession omidSession:OMIDDailymotionAdSession) throws {
+    guard let  omidFriendlyObstructions = omidFriendlyObstructions else {
+      return
+    }
+    
+    for friendlyObstruction in omidFriendlyObstructions {
+      try omidSession.addFriendlyObstruction(friendlyObstruction.view, purpose: friendlyObstruction.obstructionType, detailedReason: friendlyObstruction.reason)
     }
   }
 

  ///   - 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, allowAudioSessionActive: Bool = true) {
    super.init(nibName: nil, bundle: nil)
    
    self.allowAudioSessionActive = allowAudioSessionActive
    
    if OMIDDailymotionSDK.shared.isActive {

  func playerDidInitialize(_ player: DMPlayerViewController)
  func player(_ player: DMPlayerViewController, didFailToInitializeWithError error: Error)
  
}

public struct OMIDFriendlyObstruction {
  let view: UIView
  let obstructionType: OMIDFriendlyObstructionType
  let reason: String?
}

private struct EmbedderProperties: Codable {
