     fileprivate func addToContainer() {
         #if os(iOS)
         if optionsUnboxer.fullscreen && !optionsUnboxer.fullscreenControledByApp {
-            fullscreenHandler.enterInFullscreen()
+            fullscreenHandler?.enterInFullscreen()
         } else {
             renderInContainerView()
         }

        }

        #if os(iOS)
        listenTo(mediaControl, eventName: InternalEvent.userRequestEnterInFullscreen.rawValue) { [weak self] _ in self?.fullscreenHandler.enterInFullscreen() }
        listenTo(mediaControl, eventName: InternalEvent.userRequestExitFullscreen.rawValue) { [weak self] _ in self?.fullscreenHandler.exitFullscreen() }
        #endif
    }


    #if os(iOS)
    @objc private (set) var fullscreenController: FullscreenController? = FullscreenController(nibName: nil, bundle: nil)

    lazy var fullscreenHandler: FullscreenStateHandler? = {
        return self.optionsUnboxer.fullscreenControledByApp ? FullscreenByApp(core: self) : FullscreenByPlayer(core: self) as FullscreenStateHandler
    }()
    #endif
