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

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

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