                         player.on(.requestFullscreen) { _ in
                             callbackWasCalled = true
                         }
-                        player.setFullscreen(true)
+                        player.core!.fullscreenHandler.enterInFullscreen()
                         expect(callbackWasCalled).toEventually(beTrue())
                     }
 
                     it("should set layout to fullscreen") {
-                        player.setFullscreen(true)
+                        player.core!.fullscreenHandler.enterInFullscreen()
                         let controller = player.core!.fullscreenController
                         expect(controller.view.backgroundColor).to(equal(UIColor.black))
                         expect(controller.modalPresentationStyle).to(equal(UIModalPresentationStyle.overFullScreen))

                        player.on(.exitFullscreen) { _ in
                            callbackWasCalled = true
                        }
                        player.setFullscreen(false)
                        expect(callbackWasCalled).toEventually(beTrue())
                    }


                        player.on(.exitFullscreen) { _ in
                            callbackWasCalled = true
                        }
                        player.core?.fullscreenHandler.exitFullscreen()
                        expect(callbackWasCalled).toEventually(beTrue())
                    }
                }
