       omidSession.mainAdView = webView
       omidAdEvents = try OMIDDailymotionAdEvents(adSession: omidSession)
       omidMediaEvents = try OMIDDailymotionMediaEvents(adSession: omidSession)
-      try addOMIDFriendlyObstructions(toOmidSession: omidSession)
+      try addFriendlyObstructions(toOmidSession: omidSession, omidFriendlyObstructions)
+      
       self.omidSession = omidSession
     } catch let error {
       print(error.localizedDescription)
     }
   }
   
-  func addOMIDFriendlyObstructions(toOmidSession omidSession:OMIDDailymotionAdSession) throws {
-    guard let  omidFriendlyObstructions = omidFriendlyObstructions else {
-      return
-    }
+  func removeFriendlyObstructions(fromOmidSession omidSession:OMIDDailymotionAdSession,_ friendlyObstruction: UIView) {
+    
+    omidSession.removeFriendlyObstruction(friendlyObstruction)
+  }
+  
+  func addFriendlyObstructions(toOmidSession omidSession:OMIDDailymotionAdSession,_ omidFriendlyObstructions: [OMIDFriendlyObstruction]) throws {
     
     for friendlyObstruction in omidFriendlyObstructions {
-      try omidSession.addFriendlyObstruction(friendlyObstruction.view, purpose: friendlyObstruction.obstructionType, detailedReason: friendlyObstruction.reason)
+      if let view = friendlyObstruction.view {
+        try omidSession.addFriendlyObstruction(view, purpose: friendlyObstruction.obstructionType, detailedReason: friendlyObstruction.reason)
+      }
     }
   }
 

  public init(parameters: [String: Any], baseUrl: URL? = nil, accessToken: String? = nil,
              cookies: [HTTPCookie]? = nil, allowIDFA: Bool = true, allowPiP: Bool = true, allowAudioSessionActive: Bool = true, omidFriendlyObstructions: [OMIDFriendlyObstruction]? = nil) {
    super.init(nibName: nil, bundle: nil)
    
    self.omidFriendlyObstructions = omidFriendlyObstructions
    self.allowAudioSessionActive = allowAudioSessionActive
    
    if OMIDDailymotionSDK.shared.isActive {

  private var omidSession: OMIDDailymotionAdSession?
  private var isAdPaused = false
  private var allowIDFA = true
  private var omidFriendlyObstructions: [OMIDFriendlyObstruction] = []
  
  override open var shouldAutorotate: Bool {
    return true
